Bonjour, je voudrais savoir comment trouver le type d'un field d'une TADOTable... ftword, ftnumeric....
Merci !
Bonjour, je voudrais savoir comment trouver le type d'un field d'une TADOTable... ftword, ftnumeric....
Merci !
table.FieldByName('field').DataType
ftUnknown Unknown or undetermined
ftString Character or string field
ftSmallint 16-bit integer field
ftInteger 32-bit integer field
ftWord 16-bit unsigned integer field
ftBoolean Boolean field
ftFloat Floating-point numeric field
ftCurrency Money field
ftBCD Binary-Coded Decimal field that can be converted to Currency type without a loss of precision.
ftDate Date field
ftTime Time field
ftDateTime Date and time field
ftBytes Fixed number of bytes (binary storage)
ftVarBytes Variable number of bytes (binary storage)
ftAutoInc Auto-incrementing 32-bit integer counter field
ftBlob Binary Large OBject field
ftMemo Text memo field
ftGraphic Bitmap field
ftFmtMemo Formatted text memo field
ftParadoxOle Paradox OLE field
ftDBaseOle dBASE OLE field
ftTypedBinary Typed binary field
ftCursor Output cursor from an Oracle stored procedure (TParam only)
ftFixedChar Fixed character field
ftWideString Wide string field
ftLargeint Large integer field
ftADT Abstract Data Type field
ftArray Array field
ftReference REF field
ftDataSet DataSet field
ftOraBlob BLOB fields in Oracle 8 tables
ftOraClob CLOB fields in Oracle 8 tables
ftVariant Data of unknown or undetermined type
ftInterface References to interfaces (IUnknown)
ftIDispatch References to IDispatch interfaces
ftGuid globally unique identifier (GUID) values
ftTimeStamp Date and time field accessed through dbExpress
ftFMTBcd Binary-Coded Decimal field that is too large for ftBCD.
ou
if fields[num] is ...
TADTField TDateField TReferenceField
TAggregateField TDateTimeField TSmallIntField
TArrayField TFloatField TSQLTimeStampField
TAutoIncField TFMTBCDField TStringField
TBCDField TGraphicField TTimeField
TBinaryField TGuidField TVarBytesField
TBlobField TIDispatchField TVariantField
TBooleanField TIntegerField TWideStringField
TBytesField TInterfaceField TWordField
TCurrencyField TLargeintField
TDataSetField TMemoField
Je laisse le message, ça peut servir ...
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager