Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control of three options
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Control of three options
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01517424
Message ID:
01517424
Views:
142
Hi,

I need to create a control that will have 3 choices kind of similar to how the option group control works but use should be able to select more than 1 choice. For example:

Shift 1 [ ] Shift 2 [ ] Shift 3 [ ]

The control should be bound to one field, of Int type. So that the value stored in the field would be as following:
0 - if user didn't make any selection
1 - If user selected Shift 1
2 - Shift2
3 - Shift1 + Shift2
4 - Shift1 + Shift3
5 - Shift2 + Shift3
6 - Shift1 + Shift2 + Shift3

The only way I can think of is by creating a container-based class with three optio control buttons.

But, in case I am missing something, is there a way to use one native VFP control for this?

TIA.
"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
Next
Reply
Map
View

Click here to load this message in the networking platform