General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only