Syntax: Get ( FoundCount )
Data type returned: Number
Returns a number that represents the number of records in the current found set.
If multiple windows are open in the current database file, each window can have its own found set. If the Get (FoundCount) function is used in a script, it returns the found count of the active layout in the active window.
Get (FoundCount) is often used in scripts, following finds, to determine navigation paths. In the following script, if one record is found, the Detail layout is shown. If multiple records are found, the List layout is shown. Finally, if no records are found, the script notifies the user with a dialog box.
If[Get(FoundCount)=1] Go To Layout[Detail] Else If[Get(FoundCount)>1] Go To Layout[List] Else Show Custom Dialog ["Empty Set"; "No Records Found"] End If
If 240 records are in the found set, Get (FoundCount) returns 240.