Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I pass class.properties to class.methods by Refer
Message
From
12/06/1998 09:30:19
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00107559
Message ID:
00107562
Views:
18
>Does anybody know how to pass a class.property to a method in the same class (by Reference)?
>
>Have tried the following with no success:
>
>Approach #1:
>------------
>
>THIS.Method( @THIS.Property1, @THIS.Property2 )
>
>Approach #2:
>------------
>m.lcOldUDFParm = SET("UDFPARM")
>SET UDFPARM BY REFERENCE
>THIS.Method( THIS.Property1, THIS.Property2 )
>SET UDFPARM &lcOldUDFParm
>
>Thank you
HI

AFAIK, you can't do this. Either pass the whole object to the method as a parameter, or copy the property to a variable, call the method, then update the property from the variable.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform