13 Replies Latest reply on Mar 8, 2017 3:04 PM by sokol@rogers.com

    merge variable as a button label


      want label to show OFF, press once for ON, then again for OFF ... repeating ...

      using merge variable as label ... <<$$bl>>

      thanks to help from forum & case statement, it easily switches from ON to OFF and back ... Case (  IsEmpty ($$bl) or $$bl = "OFF"  ; "ON" ; "OFF" )

      but despite using onLayoutEnter to set to "OFF"... it does not do this always ...

      apparently sets to a label that is BLANK, perhaps NULL ... how do I get it to show OFF as I enter the layout, and then ON with one press?