i use: Query.FieldDefs[ iRow ].DataType
but i can not competere to any of ftSmallint, ftInteger, ...
Are you sure you have the DB unit in your
uses clause
and that nothing else is interfering in the definition of TFieldType? Ctrl-clicking in
DataType should lead you to where it's taking it from, or you could use a temporary:
var something: TFieldType;
just to see from where it's taking it.
ETA: Also, seeing your code might lead to better help ...