I'm attempting a go at the calculator competition (see this thread http://www.b4x.com/forum/showthread.php?t=914).
In doing so I would like to take what I believe is a rather unique approach, however I am already experiencing problems and would like your help.
The problem is this....
Works like a charm, giving 5 as the result (can't really make it more simple than that)
But now when I do this instead...
I get 2+3 instead of the desired mathematical result.
So is there a way of forcing the compiler to treat the expression as an equation rather than a string?
Regards,
RandomCoder
In doing so I would like to take what I believe is a rather unique approach, however I am already experiencing problems and would like your help.
The problem is this....
B4X:
x = 2 + 3
MsgBox(x)
But now when I do this instead...
B4X:
x = 2 & chr(43) & 3
MsgBox(x)
So is there a way of forcing the compiler to treat the expression as an equation rather than a string?
Regards,
RandomCoder