CreateResultSet – PB Docs 2021

CreateResultSet

Description

Creates a result set object using a pointer to an
IPB_ResultSetAccessor object.

Syntax

Argument

Description

rs

A pointer to an IPB_ResultSetAccessor
object

Return value

pbobject.

Examples

This example loads the PBVM and calls the f_ret and f_in functions
in the custom class user object n_rs in the PBL pbrs.pbl. The
PowerScript for the functions is shown after the C++ code:

f_ret retrieves data from a database into a DataStore and
generates a result set:

f_in takes a result set, rs, as an argument and uses it to create
a DataStore:

Usage

To use the IPB_ResultSetAccessor interface, load the PBVM, obtain
a result set from a PowerBuilder application, and call
GetResultSetAccessor on this result set to get an IPB_ResultSetAccessor
interface object. You can then call the methods of this object to get
information about the result set. You can also call CreateResultSet
using this object as an argument to create a result set that you can
return to PowerBuilder.

When you call CreateResultSet, the AddRef function of the
IPB_ResultSetAccessor interface is called on the rs argument implicitly
to add a reference to the interface pointer.

See also

AddRef

GetResultSetAccessor

IPB_ResultSetAccessor
interface

ReleaseResultSetAccessor


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