I'm just assuming this is a bug. Set Field does not do this in Fin mode ever, so Find Mode is being skipped at times.
1 of 1 people found this helpful
I believe that one thing that may prevent being able to enter find mode is if some data validation fails that prevents the current record from being able to be commited (say the user has left a required field empty, or entered text into a number field etc...).
What if you just add in another step to your script that checks the current window mode to ensure you have made it to find mode?
If Get ( WindowMode ) != 1
Paul's answer makes sense to me. I'd just chime in by offering an alternative in the spirit of error trapping:
Enter Find Mode
set $lasterror = Get(LastError)
[Handle the error]
I haven't tested this -- so I can't say with 100% confidence that you'll get an error after Enter Find Mode, but thinking in terms of error trapping appeals to me more. I believe that Corn Walker is a big promoter of working in this way -- maybe he'd have something to say about this.