BBjRecordSet::seekForward
Description
In BBj 4.0 and higher, this method seeks forward in the BBjRecordSet for a particular BBjRecordData object.
Syntax
Return Value |
Method |
---|---|
void |
seekForward(BBjRecordData recordData) |
void |
seekForward(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 forward record by record, moving toward the end 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 (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.