RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TQuery.Text Property

Points to the actual text of the SQL query passed to the Borland Database Engine (BDE).

Pascal
property Text: string;
C++
__property AnsiString Text;

Text is a read-only property that can be examined to determine the actual contents of SQL statement passed to the BDE. For parameterized queries, Text contains the SQL statement with parameters replaced by the parameter substitution symbol (?) in place of actual parameter values. 

In general there should be no need to examine the Text property. To access or change the SQL statement for the query, use the SQL property. To examine or modify parameters, use the Params property. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!