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
Title:
Pass variable by reference into a property
Miscellaneous
Thread ID:
00904349
Message ID:
00904349
Views:
57
Anyone know if there is a way to pass a value into a method by reference and assign that to an Object.Property. Something like:


pcMyVar=.F.
? myObj.Process(@pcMyVar)

DEFINE myObj
cMyVar=""
PROCEDURE Process
LPARAMETER THIS.cMyVar
ENDPROC
ENDDEFINE


Unfortunately the above does not work, it throws a compile time error of 'Must be a variable or array'.

Cheers,
Nick
Next
Reply
Map
View

Click here to load this message in the networking platform