Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control of three options
Message
 
 
To
07/07/2011 10:19:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01517424
Message ID:
01517579
Views:
42
>>First, thank you for your suggestions. I get it that I need to create a container control with three option buttons. This is fine.
>>
>>But I don't understand why there are 8 possibilities. How do you get the value of 7?
>
>With three checkboxes, each of which can have one of two values, there are 2^3 different combinations (2 x 2 x 2). To assign a single numeric value to this, powers of two are often used - thus, one option has the value 1, the other 2, the other 4.

Funny thing is that you just answered the question I asked of Gregory in the other thread (the two threads are obviously related). Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform