To meet your needs, we constantly work to improve Querix products.
This means that Lycia documentation is developing as well.
In case you have found a certain dissonance between the provided information and the actual behavior of Lycia 3 and/or your applications, please, let us know about this via documentation@querix.com so that we can introduce the necessary changes to our documentation.
Thank you for your attention and cooperation.
The SetElementText() method is used to change dynamically static form widgets. It changes the value of the TEXT attribute of a widget. The accepts two arguments: the name of the form widget and the new value for the TEXT attribute in a form of a character string. For example you can change the text displayed by a static label in this way.
DEFINE wo ui.Window,
fo ui.Form,
a string
OPEN WINDOW w1 AT 2,2 WITH FORM "my_form"
LET wo = ui.window.getCurrent()
LET fo = wo.getForm()
CALL fo.setElementText("main_label", "New Label Text")
The SetFieldText() method has a synonym - SetElementText () - that is used for compatibility purpose.