How to check the status of a checkbox in code

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
trags3
Posts: 434
Joined: Wed Apr 09, 2014 1:58 am

How to check the status of a checkbox in code

Post by trags3 »

I need to determine if a checkbox is checked or not in code.
I'm stumped

Tom
Xero
Posts: 157
Joined: Sat Jun 23, 2018 2:22 pm

Re: How to check the status of a checkbox in code

Post by Xero »

from user gpb01:

Code: Select all

  on mouseUp
       if the hilite of button "buttonName" then   ---is if it is true/ checked
          -- do something
       else
          -- do something else
       end if
    end mouseUp
i.e. use "hilite" is true or false...
XdM
trags3
Posts: 434
Joined: Wed Apr 09, 2014 1:58 am

Re: How to check the status of a checkbox in code

Post by trags3 »

Thank you!
tom
liveme
Posts: 240
Joined: Thu Aug 27, 2015 5:22 pm

Re: How to check the status of a checkbox in code

Post by liveme »

Cool, thanks too ! :idea:
Post Reply