FATS - Fast Access Tree System
Table of Contents
List of Commands
"MT" Get # Of Results

"MT" Get # Of Results


Command string:

CMND$ = "MT\{FileNo}"

FileNo File number

Purpose:

Get the number of records identified by the result set.

Description:

This command enables your application to retrieve the number of data records (hits) of the result set generated via a preceding  Search in Matchcode (MS) command.

However, the result of this command corresponds to the total number of hits only then if either (a) a maximum hit number was adjusted with the "Search in Matchcode" command, or (b) if the indexed data file contains less than 131.000 data records, because the command. "Search in Matchcode" may only search in the first 131.000 data records and, after reaching the last hit with the command Get Next Result (MN), continues searching.

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

Parameters returned:

ERRORCODE:Errorcode or 0 (no error)
RECNO:Number of Results
FATSKEY:Undefined

Example:

CMND$ = "MT\1"

See also:

 "MS" Search in Matchcode; page 4-75


 

© 2008  GCS Software, Udo Gertz