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:
- Create a Text object and enter "Hello".
- Edit the Text object's Click event.
- Enter the following code:
Text1.Caption = "New Caption"
- Switch to Run and click on the Text object.
The caption of the Text object will change from Hello to New Caption.
See Also
Creating a Direct Connection to an Object
Changing a Variable Object's Current Value
Changing the Data Source of a Data Link