Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When to close cursors
Message
De
16/05/2001 11:03:50
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00507737
Message ID:
00507859
Vues:
14
>>>Close them as soon as you're done with them.
>>
>>Craig;
>>
>>I agree. I call it "good house keeping"!
>>
>>Tom
>
>I agree too. Clean the garbage after the form is done... :)

I'm not saying after the form is done. You may only need a cursor for a single method. If so, close it when you're done. I've had report prgs that require many SQL SELECTs into cursors, that are then combined and/or summarized. I close them as soon as I'm done with them. I've noticed a severe slowdown in VFP when I keep lots of unneeded cursors open.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform