Tech Support > Computers & Technology > Filemaker Pro : Simple Script
Filemaker Pro : Simple Script
Posted by fkissam on June 28th, 2004


Had a problem with a simple FileMaker Script with FileMaker Pro6 for
Windows.



I performed a FIND for a RECORDTYPE = JOHN. When the script executes,
sometimes there are no RECORDTYPE = John. Therefore, the app returns a
screen that says "no records match this request". When it happens that NO
records match this request, I need to have the SCRIPT abort. I tried using
the script commands HALT SCRIPT and EXIT SCRIPT. However, I think FMPro
wants a user to click either MODIFYFIND OR CONTINUE OR CANCEL.



However, if there is a RECORDTYPE = JOHN, I would want the script to execute
normally.



Any suggestions on how to accomplish what I want.


Posted by Scott Davis on June 28th, 2004


Example:

Set Error Capture [ On ]
Perform Find [ Restore find request, No Dialog ]
# "RecordType , = 'John'"
Set Error Capture [ Off ]
If [ Status(CurrentFoundCount) = 0 ]
Exit Script
End If


"fkissam" <fkissam@bellsouth.net> wrote in message news:<H7MDc.1207$1D2.1131@bignews5.bellsouth.net>. ..


Similar Posts