Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When to close cursors
Message
From
16/05/2001 11:03:50
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00507737
Message ID:
00507859
Views:
13
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform