Common text change

<< Click to Display Table of Contents >>

Navigation:  Examples > Change the text of an object >

Common text change

Previous pageReturn to chapter overviewNext page

We create tag with name State:

tagstate

Depending on the tag's value we want to change text of Text/EditField object (instead of the Text/EditField there can be other objects with text property):

textlabelcommon

For example we want to have text "Automat" if our (State) tag's value equal 0, and text "Manual" if tag's value not equal 0. We need to enable Text input property and fill it like this:

textinputproperty

 

Click OK to confirm your changes and Run simulation to check your settings:

textinputcommon