BBjRecordSet::getRecordCount

Description

In BBj 8.0 and higher, this method returns the number of records in a BBjRecordSet.

Syntax

Return Value

Method

int

getRecordCount()

Parameters

None.

Return Value

Returns the number of records in the record set.

Remarks

None.

Example

rem ' RecordSet::getRecordCount

rem ' Define the connection information
database$ = "ChileCompany"
table$ = "CUSTOMER"
select$ = "select * from "+table$

rem ' Create the RecordSet
RecordSet! = bbjapi().createSQLRecordSet(database$,"",select$)

rem ' Print the record count
print RecordSet!.getRecordCount(),
print " records returned from ",table$," table in ",database$," database."
stop

See Also

BBjAPI

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