A bug we identified today. A plugin function returns a zero (boolean result false).
But GetAsNumber or GetAsBoolean will give a 1 for the zero.
But only if we step through it in debugger.
Anyone seen that?
Here is a picture for going through step by step:
and one for running directly:
The bug is in FMP 15, 16 and was reproduced at a client's computer.
and down to FileMaker 12.
The plugin uses:
to put in a boolean in the result.
For testing, please use MBS FileMaker Plugin 7.4 or older.
For 7.5 we may do a workaround.
I don't have MBS plug-in, so I created a script that performed similar function, and I was unable to replicate the issue. Here is my script:
If [ Left ( Get (ApplicationVersion) ; 3 ) = "Ser" ]
Set Variable [ $r ; 1 ]
Set Variable [ $r ; 0 ]
Set Variable [ $a ; Value: GetAsNumber ( $r ) ]
Set Variable [ $b ; Value: GetAsBoolean ( $r ) ]
Show Custom Dialog [ "Test" ; $r & "¶" & $a & "¶" & $b ]
Executing the script and stepping through the script yields the same results (0,0,0)
Let me know if you are able to replicate the issue without the plug-in.
Retrieving data ...