Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Option buttons in a form
Message
De
13/11/1997 12:05:43
 
 
À
13/11/1997 11:38:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00059954
Message ID:
00059964
Vues:
33
>>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!!!

What do you mean the value is kept?
As far as I know, you cannot set the recordsource of an optiongroup to a character field, because the value of an optiongroup conrol can only be set to numeric values. If you want to have an option group to control a character field pout something like this in the interactive change event of the optiongroup:
if this.value = 0 then
replace table.sex with "M"
else
replace table.sex with "F"
endif

and unbind the control from the field.

HTH
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform