Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subtle question
Message
De
31/01/1999 22:52:21
 
 
À
31/01/1999 19:17:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00182331
Message ID:
00182351
Vues:
9
>>If I have a form in which most of the controls are bound to form properties, and I want to conditionally change the value of one property based on the user changing another should I change the control's value or the form property?
>>
>>eg. Say I have a check box, chk1 bound to thisform.lChk, and a textbox, txt1 bound to thisform.cText
>>If the user types anything into txt1 I want to set the check box on. So... do I say
>>thisform.lChk = .T.
>>or
>>thisform.chk1.value = .T.
>>????
>>
>>And for a bonus, why?
>>TIA
>
>Changing the value that a control is bound to does not change the value of a control until you refresh the control. So if you wanted to set the value and show the change in one step, you should change the value of the control, which will update the form property automatically.

Thanks Eric. I suspected that was the way.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform