Page 1 of 1

msg 1 + 32 vs. 32 + 1 (Rational?)

Posted: 12 Nov 2018 15:26
by Zardoz2293
:?:

I'm curious what is the reason why 1 + 32 will not generate the same result as 32 + 1 in the scripting "msg" command for the button_icons as it is a bitwise syntax? :shock: :roll:

Thank you

Re: msg 1 + 32 vs. 32 + 1 (Rational?)

Posted: 12 Nov 2018 15:37
by jupe
You aren't by chance quoting the numbers are you? Because these all display identical for me (or maybe I am just not seeing the difference):

Code: Select all

msg , 32+1; msg , 1+32; msg , 33; msg , 29+4;
whereas these do display differently because numbers shouldn't be quoted:

Code: Select all

msg , "32+1"; msg , "1+32";

Re: msg 1 + 32 vs. 32 + 1 (Rational?)

Posted: 12 Nov 2018 16:32
by Zardoz2293
As numeric not string:

Code: Select all

msg $NameStatus . " entire folder structure for <br><br>'$TypeFind'<br><br>Proceed?", 1 + 32);
Upside-down Exclamation point, OK and CANCEL {default OK}



Code: Select all

msg $NameStatus . " entire folder structure for <br><br>'$TypeFind'<br><br>Proceed?", 32 + 1);
Question mark, OK only button

:roll: :shock:

Re: msg 1 + 32 vs. 32 + 1 (Rational?)

Posted: 12 Nov 2018 16:41
by jupe
You have an incorrect closing parenthesis, remove the )

Re: msg 1 + 32 vs. 32 + 1 (Rational?)

Posted: 12 Nov 2018 20:33
by Zardoz2293
You have an incorrect closing parenthesis, remove the )
Good catch!

THANK YOU

Added as "Bug" for consideration:
viewtopic.php?f=2&t=19666