SQLSelect.PreExecute Method (Typed) | |
Return the SQL command that is generated by X#.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOSQLClasses (in XSharp.VOSQLClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD PreExecute(
cSQLString AS STRING
) AS STRING
public virtual string PreExecute(
string cSQLString
)
Request Example
View SourceParameters
- cSQLString
- Type: String
A string containing the SQL statement which will be passed to the SQL driver.
Return Value
Type:
String
A possibly updated SQL string that will be passed to the SQL driver.
Remarks
This method is a callback method that is passed to the SQL command generated by X# for the purpose of inspection and optional modification, immediately prior to the command being passed to ODBC. It must return SQL statement text.
Examples
The following example demonstrates the use of the SQLSelect:PreExecute() method:
1METHOD PreExecute(cSQLString) CLASS SubclassOfSQLSelect
2? sSQLString
3RETURN cSQLString
See Also