Get(LastError) not working properly
Operating system version
Description of the issue
I am using the following script:
Set Error Capture [Off]
Perform Find [Restore]
Set Variable [$LastError; Value;Get(LastError)]
Show Custom Dialog [$LastError]
I have made sure that the "Perform Find" step should return an error. When I run the script while on some layouts I get a Filemaker error, click "continue", then the Show Custom Dialog box shows "401". This is obviously the expected result.
When I run the script while on other layouts I get a Filemaker error, click "continue", then the Show Custom Dialog box shows "0". On still another layout, I got no error and a "0" which would be a fine result except that it shouldn't have found anything.
It is like my FMPro is wigging out! I can't see that I am doing anything wrong, yet I am not getting the expected results.
Any help would be appreciated.
Steps to reproduce the problem