Click or drag to resize

SQLStatement Constructor

X#
Construct a SQLStatement object.

Namespace:  VO
Assembly:  VOSQLClasses (in VOSQLClasses.dll) Version: 2.19
Syntax
 CONSTRUCTOR(
	cSQLStatement,
	oSQLConnection
) CLIPPER
Request Example View Source

Parameters

cSQLStatement (Optional)
Type: Usual
The statement text.
oSQLConnection (Optional)
Type: Usual
The SQL connection indicating where the table can be found. If not specified, the current default connection is used, if any; if none is defined, the system asks the end user to log on to a database.
Examples
The following example executes the SQL statement:
X#
1oConn := SQLConnection{Source,UserId,Pswd}
2ACCEPT "Enter Simple SQL Statement:" TO cStatement
3oStmt := SQLStatement{cStatement,oConn}
4// Execute the statement...
5oStmt:Execute()
See Also