Get(FoundCount)

 <  Day Day Up  >  

Get(FoundCount)

Category: Get

Syntax: Get ( FoundCount )

Parameters: none

Description: Returns a number that represents the number of records in the current found set.

Examples:

If 240 records are in the found set, Get (FoundCount) returns 240 .

Comments:

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 

 <  Day Day Up  >  


QUE CORPORATION - Using Filemaker pro X
QUE CORPORATION - Using Filemaker pro X
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 494

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net