General information
Category:
Coding, syntax & commands
Title:
How to access a pass by reference variable outside a method?
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only