Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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!
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement