SetResultSet – PB Docs 126

SetResultSet PowerScript function

Description

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

Controls

ADOResultSet objects

Syntax

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 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


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x