FATS - Fast Access Tree System
Table of Contents
List of Commands
"L" Search Last

"L" Search Last


Command string:

CMND$ = "L\{KeyNo}\{FileNo}"

KeyNoKey number
FileNo File number

Purpose:

Gets the key value and record number of the data record with the last key value.

Description:

This command enables your application to retrieve the record number corresponding to the last key value for the specified key number. If duplicates exist for the last key value, the record number returned identifies the last duplicate, that is, the one inserted most recently.

Parameters returned:

ERRORCODE:Errorcode or 0 (no error)
RECNO:Record number
FATSKEY:Key value (or KEYADR=address of key)

Example:

CMND$ = "L\1\1"

 BASIC Example
 Pascal Example
 C Example

See also:

 "F" Search First; page 4-32


 

© 2008  GCS Software, Udo Gertz