Reference > Script steps reference > Found Sets script steps > Modify Last Find
 
Modify Last Find
Purpose 
Changes the most recent find request.
See also 
Format 
Modify Last Find
Options 
None.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server 
Yes 
FileMaker Go 
Yes 
Custom Web Publishing 
Yes 
FileMaker WebDirect 
Yes 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
Modify Last Find runs in Find mode. If the database is in another mode when the script runs, FileMaker Pro switches to Find mode before running the script.
Example 1 
Performs a find. If no records were found, modifies the find request.
Perform Find [Restore]
If [Get ( FoundCount ) = 0]
Modify Last Find
End If
Example 2 
Performs a find, then sorts the found set. If no records were found, allows the user to modify the find request.
Set Error Capture [On]
Enter Find Mode [Pause: On]
Perform Find [ ]
If [Get (LastError) = 401]
Modify Last Find
Else
Sort Records [Restore; With dialog: Off]
End If
Related topics 
Script steps reference (alphabetical list)
Script steps reference (category list)