I'm a trying to use strings (which contain number) as scalar with the @val function. It works fine with string objects but does not work with string variables.
So
Code: Select all
string str = "1"
scalar i = @val(str)
But if I do
Code: Select all
%str = "1"
scalar i = @val(%str)
Do you have any idea why this occurs?
Thank you,
David
