Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass variable by reference into a property
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00904349
Message ID:
00904359
Views:
15
What I am actually trying to do is store the parameter by reference in to a property so that it can be changed by an other method.

pcMyVar=.F.
? myObj.Process(@pcMyVar)
? myObj.Proc2()
? pcMyVar && "newvalue"

DEFINE myObj
cMyVar=""

PROCEDURE Process
LPARAMETER THIS.cMyVar
ENDPROC

PROCEDURE Proc2
THIS.cMyVar="NewValue"
ENDPROC

ENDDEFINE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform