AnsweredAssumed Answered

Get(LastError) not working properly

Question asked by WarrenHavens on Jul 11, 2014
Latest reply on Jul 14, 2014 by philmodjunk

Summary

Get(LastError) not working properly

Product

FileMaker Pro

Version

10.0v3

Operating system version

10.9.4

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

Listed above.

Expected result

"401"

Actual result

"0"

Outcomes