Home » Community » Newbie corner » The Mysterious checkbox (I am positively confused by the Check box (a.k.a Option) control)
Re: The Mysterious checkbox [message #55618 is a reply to message #55609] |
Tue, 24 November 2020 10:35  |
omari
Messages: 276 Registered: March 2010
|
Experienced Member |
|
|
also, you can use it the easy way. think of int operator() that return : 1 if checked, 0 if not.
Option a;
....
a = 1; // set checked
a = 0; // set unchecked
a = true; // set checked
a = false; // set unchecked
a = !a; // change checked
....
if(a) // checked
{
...
}
regards
omari.
[Updated on: Tue, 24 November 2020 11:37] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Jul 13 21:37:56 CEST 2025
Total time taken to generate the page: 0.03270 seconds
|