Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I wrap my code (incl.) to cleanup cursors
Message
De
27/03/2006 10:57:19
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01107589
Message ID:
01107975
Vues:
21
>Hi Del
>
>>If you own SDT, there is a method of the utility class named CloseOpenedTables(). I've used it quite a bit over the years to do just this.
>
>No, I don't. Thanks a lot for the response. If I may and if I can ask, what is the general logic for this method, does it simple do a USE IN to the table name passed to it? or is it more complex than that?

Here's the heavy thing that I use when I must - don't do this while you have forms open:
Procedure closeall
	For ii=1 To Asessions(aa)
		Set DataSession To (aa[ii])
		Close Databases All
	Endfor
	Set DataSession To 1
Also, instead of Close Databases All, you could have a loop through the whole array created by aUsed(), check for buffering of each alias, and tablerevert() if buffered, then close it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform