BBjSysGui::createRecordSet

Description

Creates the BBjRecordSet identified by recordSetID from a resource file opened to resHandle.

Syntax

Return Value

Method
BBjRecordSet

createRecordSet(int resHandle, int recordSetID)

Parameters

Variable

Description

resHandle

Specifies the handle returned by a call to RESOPEN.

recordSetID

The id of a recordset contained in the resource file referred to by resHandle.

Return Value

Returns a BBjRecordSet object.

Remarks

When a foreign interpreter invokes this method, an !ERROR=208 Multi Thread results. See Accessing Objects From Different Interpreters.

Example

rem ' BBjSysGui::createRecordSet

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
resource$ = "custmaintbig.arc"
handle = resopen(resource$)
recordset = 101
recordset! = sysgui!.createRecordSet(handle,recordset)
recordset!.first()
recorddata! = recordset!.getCurrentRecordData()
print "The first record is:",'LF',recorddata!
escape

See Also

BBjAPI

BBjRecordSet

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.