Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Option buttons in a form
Message
From
13/11/1997 12:00:18
 
 
To
13/11/1997 11:38:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00059954
Message ID:
00059962
Views:
34
>>Is it possible that the data type of the field you are binding the control to is not numeric?
>>This would cause the behavior you are describing.
>
>I am making a form in which I ask the sex of teh person and I think
>i should use a option button :
>0 Masculine
>0 Femenine
>
>and the result is kept in a field of a table (Is a caracter M or F).
>well the value is kept but the bitton disappeared!!!
>And if the value is not kept the option selected doesn´t disappeared?
>
>I don´t know why
>thanks!!!

Unbind option group (clear ControlSource) and add appropriate code to Save routine, e.g.
Select Table1
If Thisform.OptionGroup1.Value=1
Replace Table1.Sex with "M"
Else
Replace Table1.Sex with "F"
Endif
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform