Math operations on variables stored into another variable
Posted: Sat May 18, 2013 6:26 pm
Hi everybody, I hate to bother people in forums with obvious things, but what seem simple in LUA is is driving me crazy in LiveCode and it must be my error at the end.
What I am trying is to do math operations on variables and PUT or store them into another variable for later displaying like
put text of field "a" into varA
put text of field "b" into varB
put (varA * varB) / 568 into varC
but varB or field "b" is either an option menu or pull down menu or radio btn and it does not do the math. it always says error in right operand.
Can anyone help me please?
P.S tried with VALUE as stated in another post but still no luck.
What I am trying is to do math operations on variables and PUT or store them into another variable for later displaying like
put text of field "a" into varA
put text of field "b" into varB
put (varA * varB) / 568 into varC
but varB or field "b" is either an option menu or pull down menu or radio btn and it does not do the math. it always says error in right operand.
Can anyone help me please?
P.S tried with VALUE as stated in another post but still no luck.