FATS - Fast Access Tree System
Table of Contents
List of Commands
"MP" Get Previous Result

"MP" Get Previous Result


Command string:

CMND$ = "MP\{FileNo}"

FileNo File number

Purpose:

Get the previous record of the result set found by an Matchcode-Query.

Description:

This command enables your application to retrieve the record- resp. ID-number corresponding to the next data record of the result set generated via a preceding  Search in Matchcode (MS) command. This command is reliable only if the last matchcode-command was either "MA", "ME", "MF", "MN", "MP" or "MS".

If there is no previous hit in sequence FATS will return an errorcode of #13.

This command is only supported by the extended version of FATS.

Parameters returned:

ERRORCODE:Errorcode or 0 (no error)
RECNO:Record number
FATSKEY:If a primary key was generated during the creation of the matchcode index file with the "K#:#" flag, it is made available via this variable to the application program.

Example:

CMND$ = "MP\1"

 BASIC Example

See also:

 "ME" Get Previous Result Before; page 4-63


 

© 2008  GCS Software, Udo Gertz