Displaying variables at a MessageBox.

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.

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *