Assigning/Hiding Text Label

Kladkul

Member
I'm having trouble assigning values to and hiding a text label in a window I am working with.

Keep getting ' Unknown Field or Variable name - TEXT-1. (201)" error. Here is the statement I'm using:

Code:
TEXT-1:HIDDEN IN FRAME M-Main = TRUE.

That or assigning it a different value but neither seem to work. Ideas?

Thanks,
Klad
 
Text objects are stored as literals in the screen and you can't reference them directly like that. You can only reference them using a handle. I suggest using a fill-in set to read only. That way you can reference it much easier.
 
If you want to hide text labels you have to create them dynamically.

Casper.
 
Text objects are stored as literals in the screen and you can't reference them directly like that. You can only reference them using a handle. I suggest using a fill-in set to read only. That way you can reference it much easier.

How can this be done?
 
Just use a normal fill-in, with no label, and set the tickbox for enable to off. Then you can reference it like any other widget. Set its value in the advanced options or programatically.
 
Back
Top