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:
00302359
Vues:
25
>Hi everyone,
>
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform