[FX.php List] foundCount - difference between FM6 and FM7SA

Jesper Bladt bladt at biology.au.dk
Mon Mar 21 02:46:39 MST 2005


I've previously used -findAll with groupSize=0 to get the number of records
(using foundCount) in a FM 6 database.
However - there is a difference in the XML retrieved from FM6 and FM7SA when
answering a findAll-call.

In FM7SA - the number of records in the database is present in the DATABASE tag
as e.g. RECORDS=56 but in the RESULTSET tag, FOUND is set to the groupSize (in
my case cero) - (and hence foundCount in FX will be 0).
In FM 6 the RESULTSET tag displays FOUND=total number of records in the database
even if groupsize is set to 0 (and hence foundCount in FX will be the number of
records in the database).

Therefore I cannot use the same function in FX to get the the number of records
in the two different types of databases.

Is there a way to use the same function from FX, that can return the number of
records in a FM6 and a FM7SA database without having to retrieve all the
records ????

/bladt








More information about the FX.php_List mailing list