Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Option Group ( Radio Button )
Message
 
À
29/09/1998 15:37:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00142095
Message ID:
00142108
Vues:
26
>>Hi Everyone,
>>
>>Let say I have the following option group (Radio Buttons)
>>
>>(*) Junior High call is optJunior
>>( ) Senior High call is optSenior
>>( ) University call is optUniversity
>>
>>these are part of the OptGrpEducation. The data type of this field (education) in the table is character of 1.
>>
>>OptGrpEducation.ControlSource = table1.education
>>
>>Everytime I checked on any of the option group above is flashed quickly and the black dot would not stay on. How could I solve this problem? And would this be a refresh problem.
>>
>>Any help is appreciated.
>>
>>Steve
>
>Probably, optiogroup expects to see Integer as controlsource. You can unbind it and add e.g. This.OptGrpEducation.Value=Val(table1.education) to Form.Refresh method. Also, some code will be needed in Save routine.

It's trying to match up the entire option button caption with your single character field and none of them match, so it gets cleared. You can either
expand your field to accommodate the entire caption, or Cut your option button caption down to one character. As a general rule, I think using a numeric field for options is better practice.
kenweber
GCom2 Solutions
Microsoft Certified Professional

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform