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.


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.