Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optiongroup problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00399631
Message ID:
00400008
Vues:
22
>>I am trying to use an option group with two buttons, Yes and No, to represent the state of a logical field.
>>
>>the interactivechange,
>>
>>IF THIS.Value = 'Yes'
>> REPLACE ACTCOMPL.nontrad WITH .T.
>>ELSE
>> REPLACE ACTCOMPL.nontrad WITH .F.
>>ENDIF
>>
>>seems to work and display correctly,
>>but in the init I have:
>>
>>IF ACTCOMPL.nontrad
>> THIS.Value = 'Yes'
>>ELSE
>> THIS.Value = 'No'
>>ENDIF
>>
>>to display the current value when the form opens, but it always displays 'No' regardless of the field value
>>
>>Any suggestions?
>>TIA
>>
>Al,
>
>I know that using a numeric has already been mentioned, but let me additionally make this suggestion. In your interactive change event, you can use:
REPLACE ACTCOMPL.nontrad WITH (This.Value = 1)
George,

Thank you for your suggestion. I've got it working now, I think, although I went with the text/caption way rather than the numeric. I was trying one of each. It worked first so it won!

Al Allison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform