Value property: SQL class
Description
This property returns the SQL statement associated with the SQL object as a string.
This property is read-only.
Example
To report an error in a SQL definition, including the actual SQL executed, use the Value property to get the text of the SQL statement:
Local SQL &SQL;
/* Execute some SQL. */
&SQL = CreateSQL(SQL.SOMESQL, &EMPLID);
If &SQL.Status = %SQLStatus.NotFound Then
/* Get the SQL string used. */
&SQLSTR = &SQL.Value;
/* Report the error. */
. . .;
End-If;