Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to access a pass by reference variable outside a method?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to access a pass by reference variable outside a method?
Divers
Thread ID:
00682609
Message ID:
00682609
Vues:
46
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
Fil
Voir

Click here to load this message in the networking platform