Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assign method problem
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00381071
Message ID:
00381549
Vues:
29
>Larry,
>
>>Technique 1
>>Property is public and there is a corresponding _Assign method.
>>
>>With this technique, you don't have to worry about much, the VFP engine will take of it. Whenever the property is assigned by anything (internal or external code) the validation in the _Assign will fire and do the appropriate thing.
>
>You do have to worry about this. If the value is assigned on the property sheet the Assign is not triggered. Which leads to the need for lame code in the Init method:
>
>this.MyProperty = this.MyProperty && to trigger assign
>
>df

David,
This is good for everyone to know. But it begs the question, why would you deliberately assign an invalid value in the property sheet and need the validation to occur?
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform