Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to access a pass by reference variable outside a met
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00682609
Message ID:
00682686
Views:
14
Thanks for your idea! I may have to do that, but ideally I would like the application to just pass the connection handle (SQLConnection) and not have to wrap it before I send it. Is there no way once I have the reference variable in the Init method to make it public to the class? Both the class and the application use the connection handle and both need to have same handle at all times. If one changes it, the other should have the change also. Thanks.


>
>Create a Custom object that will hold all the data you wish to pass back and forth by reference, pass the custom object by reference.
>When you store the object parameter to a property you will have another reference to the same object.
>
>Note that with this approach you can produce dangling reference, which will prevent your application from unloading. Dangling reference is situation where one object contains reference to another, and the second one contains reference to the first.
>So that both objects cannot be unloaded flawlessly with a single QUIT or CLEAR ALL command.
>
>HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform