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:
00381545
Vues:
21
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
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform