Changing a Text Object's Caption

The following example changes the caption of text you have entered when you click on the text at run-time.

To change a text object's caption:

  1. Create a Text object and enter "Hello".
  2. Edit the Text object's Click event.
  3. Enter the following code:

Text1.Caption = "New Caption"

  1. Switch to Run and click on the Text object.

    The caption of the Text object will change from Hello to New Caption.

See Also

How Do I...

Important Notice

You do not have the latest version of iFIX! You are missing out on the newest capabilities and enhanced security.

For information on all the latest features, see the iFIX product page.

For more information on upgrades, contact your GE Digital sales agent or e-mail [email protected].

For the most up-to-date documentation, go here.