Question about manipulating user entered text (performing a calculation)
Hello! I am trying out MMF2, and am having some issues with performing a calculation on some user entered text. I have been working on creating an iOS app with some financial calculators in Corona SDK, and thought it might be interesting to try it in MMF2.
I am using a pair of iOS Single Line Edit boxes, as well as an iOS button. I have been able to get input text to display in a string object by using a button clicked event to set an alterable string to Text$( "editBox1" ), then displaying the alterable text. The problem I am having is two fold; one being that this text is a string and not an int, and two is that I cannot figure out how to get the two values converted to intergers and perform a simple calculation on them.
Ideally I would be able to set the alterable string to Val( "editBox1" ) + Val( "editBox2" ), but when I do that it asks me to enter an alphanumeric string. When I try to use just Val( "editBox1" ) it gives me that same error.
I know that this function exists, I am just not finding any reference to how to perform the task. Any help would be greatly appreciated!
Sean