Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can we read/write custom property?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00302338
Message ID:
00302394
Vues:
24
Jim,

Thanks a lot for your response. I was not aware of this technique. It makes our life much easier. And I found, that Mike already used it in pagecount_assign method. So, we should just use the same methods for all other properties. Right?


>>
>>I'm wondering how can we assign custom property. For example (see another thread from me and Mike Helland), if we created custom property for page - visible (It's a pity, that VFP has not this property for page object), how can we just write this.visible=.f., if this statement requeres some work behind from the class point of view?
>
>Hadya,
>
>You can use an Assign method associated with the property. In your example you would create a method named
>
>Visible_assign
>
>And in that method receive a parameter for the value being assigned;
>
>LPARAMETER vNewVal
>
>* Write your code here to react to the value being assigned
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform