String and field commands
Posted: Mon Jun 14, 2010 5:27 pm
Hello and thanks for reading.
For my first project in Revolution (technically my second, I have made a guessing game), I figured I would try out a calculator, looking very similar to the standard Windows calculator. I figured that I would treat the output of the calculator (the field) as a string that could be converted to a real value when performing math, making it easier to make something like "4" into "40".
This being my first real project, I know very little commands (but I do know the syntax), so I have a few questions to ask.
-How do I make it so that the user cannot type into the output field? Is this possible in the inspector somewhere?
-How do I add one string value to the end of another? When trying the add command, even while using parentheses with the numbers, it treats them as integers and adds them mathematically.
-How do I convert a real/integer to a string, and vice versa?
Thanks for reading,
Patrick
For my first project in Revolution (technically my second, I have made a guessing game), I figured I would try out a calculator, looking very similar to the standard Windows calculator. I figured that I would treat the output of the calculator (the field) as a string that could be converted to a real value when performing math, making it easier to make something like "4" into "40".
This being my first real project, I know very little commands (but I do know the syntax), so I have a few questions to ask.
-How do I make it so that the user cannot type into the output field? Is this possible in the inspector somewhere?
-How do I add one string value to the end of another? When trying the add command, even while using parentheses with the numbers, it treats them as integers and adds them mathematically.
-How do I convert a real/integer to a string, and vice versa?
Thanks for reading,
Patrick