Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic Option Group Question
Message
From
20/02/1998 14:24:26
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Basic Option Group Question
Miscellaneous
Thread ID:
00080176
Message ID:
00080176
Views:
61
I'm experimenting with my first option group and, although I thought I was doing it according to the docs, it's not working right for me. The form has a text box field and the option group with three options. The table involved in the form has two fields: invoice# and action code (numeric). I'm opening the file in Form.Load. The form is called with the invoice number passed as a parameter. In Form.Init it looks for a record for the invoice number. If it exists, it gets displayed; if it doesn't exist, a new record is added. The action code can be 1, 2 or 3 and, for a new record, it's 3. I have the action code as the control source for the option group. What I was expecting to happen was that the form would display and that either the first, second or third option would be selected depending on whether the action code was 1, 2 or 3. What's happening is that all three are selected. The Value property for each option is set to 0. If I click on one of the options, the other two get unselected and the option group works fine after that. Why are they all selected at first? Obviously I've overlooked something but I can't figure out what it is. Gary J. Sibio Mr. Travel, Inc. >>> Please Mr. Gates, can we have our computers back? <<<
Next
Reply
Map
View

Click here to load this message in the networking platform