Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I pass class.properties to class.methods by Refer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00107559
Message ID:
00107639
Vues:
16
Hi...

With regard to code like this: THIS.Method( @THIS.Property1, @THIS.Property2 )

There is no need to pass a property by reference. Accessing a property is accessing property. No matter where you are in the Object, you can access the property - and it is a global change. So, you can change things to the following:

THIS.Method()

Then in the method:

Procedure Method
With This
.Property1 = x
.Property2 = y
Endwith
EndProc
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform