Hy folks,
im a newbie on ZEOS and I have a question. Is there any possibility to get the DataType of the Columns in a Recordset I get from a TZQuery. I know that I can get it form a TSQLMetadata but I want to know, if I can get it from a TZQuery.
thank you
mtm
Datatype of Column with TZQuery
Moderators: gto, EgonHugeist
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
mtm,
Do you want to know the datatype of the database column or do you want to know the type of the TField in the TDataset?
- Getting the database column type isn't possible, as far as I know. Unless TZQuery.FieldDefs(i).DataType works that way, but that would be a zeoslib feature I didn't know. Please test, so we know for sure.
- TField.DataType tells you how the field is interpreted by the dataset.
Mark
Do you want to know the datatype of the database column or do you want to know the type of the TField in the TDataset?
- Getting the database column type isn't possible, as far as I know. Unless TZQuery.FieldDefs(i).DataType works that way, but that would be a zeoslib feature I didn't know. Please test, so we know for sure.
- TField.DataType tells you how the field is interpreted by the dataset.
Mark