Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Option button deselect
Message
From
29/05/2007 18:03:18
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01229161
Message ID:
01229176
Views:
20
FWIW, I just did a quick test. Created a new form and dropped an options group control on it. It has two buttons. Run the form and the option group comes up with nothing selected. Clicked on the first button, it gets selected. Clicked on the second button, it gets selected and button one is de-selected.

Now comes the trick that I doubt most users will not remember; Press Ctrl+0 and nothing is selected.

HTH
Mike



>>>If I have a 2 option buttons and a user selects one of the options, how can a user deselect that button incase they don't want any option buttons selected?
>>>
>>>thanks
>>>Nick
>>
>>You can set value = 0 for all buttons, but I think this defeats the purpose of the option group control, e.g. it always has to have some option selected.
>>
>>I don't think you can interactively de-select all options.
>
>hum, your right. Maybe I need checkboxes. I was hoping to avoid checkboxes because only one item should be checked off or none at all. I'm adding this to my grid, however I'm not as savy with the BINDEVENT() to hook it up to click() where I can control which things are clicked.
>
>thanks
>Nick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform