Hi,
I'm attempting to multiply two integers stored in variables. It works properly if I set the variables directly, but if one variable is set to the value of an edit field, the edit field variable is always treated as a string.
Examples:
(Correct)
%NumberA% = "3"
%NumberB% = "4"
%NumberA% * %NumberB% = "12"
(Incorrect)
%NumberA% = "3"
%NumberB% = EditFieldObject(Text1).GetText)
%NumberA% * %NumberB% = "4 4 4"
I'm using a digits-only input mask on the edit field to make sure the value is a number, and I've even tried the Get Delimited String, but even that variable is treated as a string.
Any way around this?
Thanks,
Craig
I'm attempting to multiply two integers stored in variables. It works properly if I set the variables directly, but if one variable is set to the value of an edit field, the edit field variable is always treated as a string.
Examples:
(Correct)
%NumberA% = "3"
%NumberB% = "4"
%NumberA% * %NumberB% = "12"
(Incorrect)
%NumberA% = "3"
%NumberB% = EditFieldObject(Text1).GetText)
%NumberA% * %NumberB% = "4 4 4"
I'm using a digits-only input mask on the edit field to make sure the value is a number, and I've even tried the Get Delimited String, but even that variable is treated as a string.
Any way around this?
Thanks,
Craig
Comment