Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

SetRecordSet – PB Docs 126 – PowerBuilder Library

SetRecordSet – PB Docs 126

SetRecordSet PowerScript function

Description

Sets an ADOResultSet object to obtain its data and metadata
from a passed ADO Recordset.

Controls

ADOResultSet objects

Syntax

Argument

Description

adoresultset

An ADOResultSet object into which the
function places the passed ADO Recordset.

adorecordsetobject

An OLEObject object that contains an
ADO Recordset. Passing an OLEObject that does not contain an ADO Recordset
generates an error.

Return Values

Integer. Returns 1 if it succeeds and
-1 if an error occurs.

Usage

Use the SetRecordSet function to populate
an ADOResultSet object with data passed in an OLEObject that contains
an ADO Recordset. Record sets are returned from COM+ components
as ADO Recordsets.

Examples

The following example connects to a COM+ component
and calls a method on the component that returns an ADO Recordset
to an OLEObject object. Then it creates an ADOResultSet object and
populates it with data from the OLEObject using SetRecordSet:

See Also

  • CreateFrom method
    for DataWindows in the DataWindow Reference or the online Help

  • GenerateResultSet method
    for DataWindows in the DataWindow Reference or the online Help

  • GetRecordSet

  • SetResultSet


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