Texts

The Texts interface acts as a parent object for all texts that can be accessed from a form. Individual texts are accessed using their text id. When the id is not a valid Java identifier e.g. it begins with a numeric, the element can only be accessed using the #getText(String) method.

When running an event that forms part of a deployed component, only texts accessible from the component can be accessed.

All included texts can be iterated using the following code:

 for ( var text in Iterator(texts.iterator()) )
 {
    log(text.text);
 }   
 
Examples:
 text.Txt1.text = "Test";
 texts.getText("1001").text = "Hello world";
 event.owner.addMessageText(texts.message5);
 

Texts Functions

getText Texts.getText( textId ) Returns the Text with id textId.