Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subtle question
Message
De
31/01/1999 19:10:42
 
 
À
31/01/1999 18:10:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00182331
Message ID:
00182336
Vues:
19
>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.
>????
>
David,

'Tis 6 of one, a half dozen of the other. If you...

Change the control value, the new value is altomatically propagated to the form property to which it is linked,

Change the form's property, you will have to refresh() the control to which it is linked before the new value will appear in the control.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform