SetResultSet PowerScript function
Description
Populates a new ADOResultSet object with data passed in a
ResultSet object.
Controls
ADOResultSet objects
Syntax
1 |
<span>adoresultset</span>.<span>SetResultSet</span> ( <span>resultsetobject </span>) |
Argument |
Description |
---|---|
adoresultset |
An ADOResultSet object into which the |
resultsetobject |
A ResultSet object that contains result |
Return Values
Integer. Returns 1 if it succeeds and
-1 if an error occurs.
Usage
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.
Examples
See GetRecordSet.
See Also
-
GenerateResultSet method
for DataWindows in the DataWindow Reference or the online Help