In article <1133295140.200369.59650 (AT) f14g2000cwb (DOT) googlegroups.com>, "JC"
<jc (AT) jclewis (DOT) biz> wrote:
Quote:
I have a simple "enter find" and "perfrom find" script. Sometimes it
runs fine, then sometmes it will come back with a "restore find" that I
did not intend for it to do.
Using FM7 v3 |
It depends what you're trying to do.
If you're trying to perform a Find where the user or a script enters
Find request data, then your script should be something like:
Enter Find Mode []
Pause script or Set Field
Perform Find []
You don't want the Restore option at all, since that restores whatever
Find requests were stored with the script. (The stored Find requests
are those performed manually just before adding the Find commands to
the script or stored when asked to Replace the Find requests when
exiting the script editing). If either the Enter Find Mode or Perform
Find has the Restore option turned on you will get "unexpected" results
since the script is really re-performing the stored manual find.
A good guess would say that this is the problem. It's something that
trips up everyone from time to time when working with Finds ... even
those of us who have been using FileMaker for many years.
If you're trying to use the Find request that is stored with the
script, then you don't need Enter Find Mode at all and the script
simply becomes:
Perform Find [Restore]
Of course you may want a combination of these where the stored Find
requests are added to by the user or script commands, in which case you
want something like:
Enter Find Mode [Restore]
Pause script or Set Field
Perform Find []
Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)