Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best way to do this?
Message
From
13/12/2000 19:58:58
 
 
To
13/12/2000 19:39:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00453170
Message ID:
00453186
Views:
23
Interesting. Is this what you normally do? What of cases where the code is not the first letter of the caption?

Any other ideas?

Alex


>In VFP, an option button can be bound to a character field in its ControlSource - which will tie to the caption of the selected button.
>
>If you wanted to do this for the M/F optiongroup, you would need to
>
>set the optiongroup.Value to the empty string or "M" or "F",
>make the button captions just "M" and "F" and add labels for "Male" and "Female" and line them up with the button captions
>I'd go ahead and use "Male" instead of "ale" for the label - it's easier to line up the captions that way. Also, it helps if the optiongroup and buttons and labels have their BackStyle = 0 (Transparent) - at least when lining them up.
>
>HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform