Question:
How can I display variables on a MessageBox?
Solution:
To do so, follow these steps:
- Set the constant messages between quotation marks;
- Set the variables without quotation marks;
- Use the character “+” to concatenate the constant messages to the variables.
Example of script:
MessageBox(“The tag’s value is: ” + Str(tag001))
IMPORTANT: it is not possible to use numeric variables. So, if necessary, you must convert the numeric variables into string by using the Global Manager’s Str() method.