FATS - Fast Access Tree System
Table of Contents
List of Commands
"A" Search Next After

"A" Search Next After


Command string:

CMND$ = "A\{KeyNo}\{RecNo}\{FileNo}\{KeyString}"

KeyNoKey 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 greater than the requested key value.

Description:

With this command your application can retrieve the record number corresponding to the first key value which is greater than the key value you specify.
If a duplicate key exists, the next higher record number of the next duplicate will be returned.
The key value you specify with "KeyString" donīt have to be a valid key in the index file

Unlike the "Search Next" 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$ = "A\1\"+STR$(RECNO)+"\1\"+KEYSTRING$

 BASIC Example
 Pascal Example
 C Example

See also:

 "N" Search Next; page 4-77


 

© 2008  GCS Software, Udo Gertz