Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Yes/No control
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00474738
Message ID:
00474783
Views:
20
Jeff,
If your users are non-windows (or non-computer) oriented then perhaps instead of an option group or a checkbox you could consider a dropdown list box with only two choices: Yes and No. In the InteractiveChange code you could transform Yes into TRUE, No into FALSE for your field.

Just one more way to do something in VFP < grin >
Barbara

>is there any way to use an option group as a logical control. The foxpro default for logical controls is just a checkbox for yes, I think it would be better and clear to have to buttons, a -yes- and a -no-. I realize that the checkbox for true, implies that if it isn't checked then it is false. But we are programmers, the other world may see the same checkbox as true if checked or simply unanswered if not checked. I believe a typical user would feel like they answered a question if he/she actually had to supply some input. It doesn't occur to most people that the absence of a check in a true or yes box means that it is false or no.Most people would like to actually select no. Anyway, enough rambling, I tried this and I keep getting data type mismatch when I run form. I set button values to .t. and .f. and captions to yes, no. when that did'nt work, I set captions to t and f, that didn't help. What exactly are the buttons passing back to optiongroup control? It looks like the number of
>the button selected, not any values. If so , then will I have to have no control source, and just set values of true/false by onclick code and then to display logical values on reading a record by setting value by refresh code?
>Isn't there an easier way???
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform