Switching a control's hidden attribute from hidden to true in code


Guest

I am doing a simple test to switch a label control's attribute from hidden (initially) to visible (activated with a push of a button).

My label control is named lblSayHello.
My button control is named btnSayHello.

Within the btnSayHello code tab (yes the click event is selected at the bottom), I have tried the following combinations but none of them make the label control (lblSayHello) visible:

SetAttribute "lblSayHello" "hidden" "False"
SetVar "[lblSayHello.Hidden]" "False" "String"

I am using version 2016.133 of App Builder.

Thank you in advance.


decsoft

Hello John,

You can use the Show, Hide and Toggle actions if you like. If you want to use the "Hidden" variable you can do it too, just the below way:

The "Hidden" variable is explained at the App's controls help topic.


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.