Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a property by reference???
Message
From
20/08/2001 21:03:17
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00546079
Message ID:
00546544
Views:
22
> Does anything one know how to pass a property of an object by reference?
>Something like
>
>oObj = CREATEOBJECT("Custom")
>oObj.AddProperty("Prop1", "")
>oSomeFunction = CREATEOBJECT("SomeFunction")
>oSomeFunction.Function1(@oObj.Prop1)

How about a "named" reference; eg.
PRIVATE oObj 
...
oSomeFunction.Function1( "oObj.Prop1" )

...
PROCEDURE Function1
LPARAMETER tcProp
...
STORE EVAL(tcProp) TO x
...
STORE y to (tcProp)
...   
Previous
Reply
Map
View

Click here to load this message in the networking platform