Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why can't I pass object property by reference
Message
 
 
To
01/04/2002 23:36:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00639771
Message ID:
00639876
Views:
23
>>If you could pass property by reference than you would be able to "disconnect" property from the object because you would be able to reference it directly. Can you call it a property after that?
>
>Why is a local variable to a procedure any different than a property to object? Both describe the state of the environmet.

The local variable is scoped to the procedure but can be referenced by it's name as long as it's in the scope. The property doesn't exist by itself w/o object. You cannot reference the property by just it's name because w/o object it belongs to the name of the property is meaningless.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform