Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to access a pass by reference variable outside a method?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to access a pass by reference variable outside a method?
Miscellaneous
Thread ID:
00682609
Message ID:
00682609
Views:
47
Hello everyone!

I have a class and in the Init of that class I have "PARAMETERS SQLConnection, SQLTimeoutTime". When I create the class inside a form in my application, I pass a variable to 'SQLConnection' using pass-by-reference. I also have another method called 'Disconnect' in that class which has "SQLDisconnect(SQLConnection)" and a few other commands which deal with 'SQLConnection'. My problem is that SQLConnection is undefined in the 'Disconnect' method. How can i access the 'SQLConnection' variable and still keep it a pass-by-reference variable (if I create a property and assign that property the value of SQLConnection, I no longer have pass-by-reference)?

Thanks in advance!
Next
Reply
Map
View

Click here to load this message in the networking platform