Accessing result sets
You can use the IPB_ResultSetAccessor interface to access result
sets in PowerBuilder. Use the IPB_Session GetResultSetAccessor method to
create an instance of the interface using a result set returned from
PowerBuilder as the method’s argument. You can then use the
IPB_ResultSetAccessor’s getColumnCount, GetRowCount, GetItemData, and
GetColumnMetaData methods to obtain information from the result
set.
GetItemData uses the IPB_RSItemData interface to handle the data in
each cell in the result set. If the data has a date, time, or
datetime datatype, it is stored in a PB_DateData, PB_TimeData, or
PB_DateTimeData structure.
To create a result set that can be passed to PowerBuilder, use the
IPB_Session CreateResultSet method. See CreateResultSet for an
example.