Populates a new ADOResultSet object with data passed in a ResultSet object.
ADOResultSet objects
adoresultset.SetResultSet ( resultsetobject )
Argument |
Description |
---|---|
adoresultset |
An ADOResultSet object into which the function places the passed result set as an ADO Recordset |
resultsetobject |
A ResultSet object that contains result set data |
Integer. Returns 1 if it succeeds and -1 if an error occurs.
Use SetResultSet when you want to create an ADOResultSet object and populate it with data from a ResultSet object. The ResultSet object can be generated from a DataStore object using the GenerateResultSet function.
After you create the ADOResultSet object using SetResultSet, you can use the GetRecordSet function to return the ADO result set in an ADO Recordset object of type OLEObject that you can use as a native ADO Recordset object in PowerScript.
See GetRecordSet.
GenerateResultSet method for DataWindows in the DataWindow Reference or the online Help