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: FourthWorld, heatherlaine, Klaus, kevinmiller

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

How to check the status of a checkbox in code

Post by trags3 » Mon Feb 22, 2021 2:47 am

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 » Mon Feb 22, 2021 4:11 am

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: 432
Joined: Wed Apr 09, 2014 1:58 am

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

Post by trags3 » Mon Feb 22, 2021 4:31 am

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 » Mon Feb 22, 2021 7:04 pm

Cool, thanks too ! :idea:

Post Reply