Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I pass class.properties to class.methods by Refer
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00107559
Message ID:
00107639
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform