BBjRecordSet::getCurrentRecordNumber

Description

In BBj 17.0 and higher, this method returns the current record number from a BBjRecordSet.

Syntax

Return Value

Method

int

getCurrentRecordNumber()

Parameters

None.

Return Value

Returns the current record number from a BBjRecordSet.

Remarks

None.

Example

rem ' BBjRecordSet::getCurrentRecordNumber

recordSet! = bbjapi().createMemoryRecordSet("CharField:C(10),NumField:N(3)")

data! = recordSet!.getEmptyRecordData()

data!.setFieldValue("CharField", "Record 0")
data!.setFieldValue("NumField", "0")
recordSet!.insert(data!)
recordSet!.moveToRecord(0)

data2! = recordSet!.getCurrentRecordData()
print "getCurrentRecordData: ",data2!

data2!.setFieldValue("CharField", "Record 1")
data2!.setFieldValue("NumField", "1")
recordSet!.insert(data2!)
recordSet!.moveToRecord(1)

print "getRecordCount:",recordSet!.getRecordCount()
print "getCurrentRecordNumber:",recordSet!.getCurrentRecordNumber()
print "getCurrentRecordData: ",recordSet!.getCurrentRecordData()

escape
stop

See Also

BBjAPI

BBjRecordSet

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