Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Option Groups
Message
 
To
22/07/1998 10:07:42
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00120150
Message ID:
00120194
Views:
28
>There is a control source property on each option button. Is there a way to change this property and link it to a table? If so, how?
>
>I tried this.option1.controlsource = contacts.firstname, but that value is spaces for some reason.
>
Jim,

Option groups take a numeric controlsource which designates which button is selected.

THISFORM.OptionGroup1 = Alias.NumericField

Or you can leave the controlsource blank and in the refersh of the optiongroup you can;
DO CASE
   CASE alias.FirstName = "Jones"
      THISFORM.OptionGroup1.Value = 1
   CASE alias.FirstName = "Smith"
      THISFORM.OptionGroup1.Value = 2
   OTHERWISE
      THISFORM.OptionGroup1.Value = 1
ENDCASE
Previous
Reply
Map
View

Click here to load this message in the networking platform