Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Базы";
Текущий архив: 2002.12.16;
Скачать: [xml.tar.bz2];

Вниз

Тип поля   Найти похожие ветки 

 
AndreyAGSoft   (2002-11-28 11:34) [0]

Уважаемые мастера ! Как узнать тип какого-либо поля из TDataSet.
Зараннее спасибо !


 
Карелин Артем   (2002-11-28 11:38) [1]

Identifies the data type of the field component.
property DataType: TFieldType;
Description
Read the DataType property to learn the type of the data the field contains.
A field in a dataset is always treated as one of the following TField descendant classes below:

TADTField TDateField TReferenceField
TAggregateField TDateTimeField TSmallIntField
TArrayField TFloatField TStringField
TAutoIncField TGraphicField TTimeField
TBCDField TGuidField TVarBytesField
TBlobField TIDispatchField TVariantField
TBooleanField TIntegerField TWideStringField
TBytesField TLargeIntField TWordField
TCurrencyField TMemoField
In addition to these front-line field classes, there are a number of field classes that serve only as abstract classes. These field classes are not used to instantiate field objects, only to provide functionality for descendant classes. These abstract field classes include TBinaryField, TDataSetField, TInterfaceField, TNumericField, and TObjectField.


 
stone   (2002-11-28 11:40) [2]

тип поля
DataSet.FieldByName().FieldKind
тип данных поля
DataSet.FieldByName().DataType


 
AndreyAgSoft   (2002-11-28 11:42) [3]

К примеру уменя есть DataSet:TDataSet;
Я хочу узнать тип второго поля. Как?


 
Карелин Артем   (2002-11-28 11:42) [4]

TFieldType is a set of values that parallel the data types of fields in tables.

Unit

DB

type TFieldType = (ftUnknown, ftString, ftSmallint, ftInteger, ftWord, ftBoolean, ftFloat, ftCurrency, ftBCD, ftDate, ftTime, ftDateTime, ftBytes, ftVarBytes, ftAutoInc, ftBlob, ftMemo, ftGraphic, ftFmtMemo, ftParadoxOle, ftDBaseOle, ftTypedBinary, ftCursor, ftFixedChar, ftWideString, ftLargeint, ftADT, ftArray, ftReference, ftDataSet, ftOraBlob, ftOraClob, ftVariant, ftInterface, ftIDispatch, ftGuid);

Description

TFieldType type is the set of values for the DataType property field objects, field definition objects, and parameter objects. Classes in which TFieldType values are used include TField (and descendants), TFieldDef, TParam, TParameter, and TAggregate. TFieldType values are also used in field-related functions and methods like TFieldDefs.Add. The following table describes each value:

Value Description

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
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


 
AndreyAgSoft   (2002-11-28 11:43) [5]

>Stone Спасибо!


 
Карелин Артем   (2002-11-28 11:43) [6]

FieldByName(номер)
Fields[номер]


 
Карелин Артем   (2002-11-28 11:44) [7]

упс.. FieldByName(название)



Страницы: 1 вся ветка

Форум: "Базы";
Текущий архив: 2002.12.16;
Скачать: [xml.tar.bz2];

Наверх




Память: 0.46 MB
Время: 0.007 c
1-51684
BSD
2002-12-05 16:02
2002.12.16
StarOffice vs Delphi


1-51751
Torrin
2002-12-04 10:38
2002.12.16
Сервисы


3-51589
-=Sergeante=-
2002-11-22 17:49
2002.12.16
Дискретное значение сумм по месяцам.


3-51601
relaxer
2002-11-26 08:14
2002.12.16
Хелп! Запароленный Paradox ...


1-51825
HP
2002-12-05 11:14
2002.12.16
FastReprt





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский