SetResultSet

Description

Populates a new ADOResultSet object with data passed in a ResultSet object.

Applies to

ADOResultSet objects

Syntax

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


Return value

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 section called “GenerateResultSet” in DataWindow Reference.

GetRecordSet

SetRecordSet