You are not logged in.
Pages: 1
I ' am using your TQuery wrapper.
How can I find out the datatype of the fields of a query? Similar to the ado function:
Query.Fields[0].DataType
Specially to find out type boolean and memo, text.
SQLDBConnection:=props.NewConnection;
Query := TQuery.Create(SQLDBConnection);
Query.sql.add('select * from mytable');
Query.Fields[0].DataType ???
Thank you
Offline
I've had the same question and examined the sources to find the answer. As far as I can see, data type of any field in a TQuery result set may be obtained the following way:
Query.PreparedSQLDBStatement.ColumnType(i)
where i is the column index.
Offline
Pages: 1