I am have trouble trying to figure out how LiveCode handles simple math problems using variables.
I would like to do calculations involving the values contained in two text fields and put the result into a third text field.
In Basic you would do something like this:
Code: Select all
Dim I as integer
Dim C as integer
Dim X as integer
I = Val(txtI.Text)
C = Value(txtC.Text)
X= I * C
txtAnswer.Text = X
Cannot find anything about this in the documentation. Has to be something easy. I just can't find it.
Any help would be greatly appreciated.
Jim