<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods > EvalString |
Declaration
function EvalString( sExpression: String ): String;
Description
Evaluates an xBase expression and retrieves the result as a string. The result of the xBase expression must be of type character.
Parameters
sExpression: An xBase expression that will evaluate as a string value passed as a literal string or as the contents of a string variable.
Return Value
The expression is evaluated and the result returned as a string.
Delphi Example
// xBase engine can display related data with a single line of code
sResult := ApTbl.EvalString('SERIAL->PROD + " " + PROD->DESC');
C++Builder Example
// xBase engine can display related data with a single line of code
sResult = ApTbl->EvalString( "SERIAL->PROD + ' ' + PROD->DESC" );
See Also