"E" Search Previous Before
- Command string:
- CMND$ = "E\{KeyNo}\{RecNo}\{FileNo}\{KeyString}"
KeyNo | Key number |
RecNo | Record number |
FileNo | File number |
KeyString | Key value |
- Purpose:
- Gets the key value and record number of the data record whose key value is less than the requested key value.
- Description:
- With this command your application can retrieve the record number corresponding to the first key value which is less than the key value you specify.
If a duplicate key exists, the next lower record number of the previous duplicate will be returned.
The key value you specify with "KeyString" donīt have to be a valid key in the index fileUnlike the "Search Previous" command, this command can be used in a network environment.
- Parameters returned:
ERRORCODE: | Errorcode or 0 (no error) |
RECNO: | Record number |
FATSKEY: | Key value (or KEYADR=address of key) |
- Example:
- CMND$ = "E\1\"+STR$(RECNO)+"\1\"+KEYSTRING$
BASIC Example
Pascal Example
C Example
- See also:
- "P" Search Previous; page 4-77
© 2008 GCS Software, Udo Gertz