BBjRecordSet::seekBackward
Description
In BBj 4.0 and higher, this method seeks backward in the BBjRecordSet for a particular BBjRecordData object.
Syntax
Return Value |
Method |
---|---|
void |
seekBackward(BBjRecordData recordData) |
void |
seekBackward(BBjRecordData recordData, boolean partial) |
Parameters
Variable |
Description |
---|---|
recordData |
Specifies a BBjRecordData object. |
partial |
0 – require full match of each non-blank field 1 – allow partial match of each non-blank field |
Return Value
None.
Remarks
Starting from the current record, this method scans backward record by record, moving toward the beginning of the recordset. For each record retrieved from the recordset, it compares each non-blank field from the specified record. If a matching record is found, it becomes the new current record. If no matching record is found, an error is generated and the current record is unchanged. To initialize the record for scanning, always start with an empty record (see BBjRecordSet::getEmptyRecordData), then set only those fields that are necessary to uniquely identify the record. Note that this method scans sequentially through the file, and could be slow with large recordsets.
If the partial parameter is not supplied, seek will require a full match.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.