Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When to close cursors
Message
From
16/05/2001 07:53:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00507737
Message ID:
00507738
Views:
10
>I am trying to clean up come of my class codes. and I am looking for a suggestion, as to when - where someone should be cleanup close cursors in a class - like a base class form.
>
>what I am thinking about is that when a form - classform closes - it should close and clear out any cursors it made.
>
>
>However , and here is the question really, from my menu form, sometimes I create cursors from there, and when I return to the menu, the cursor is still open. I dont think it would be a good idea to close all cursorts when one form closes, (what if Other forms are open) Just a little confused about a good way to hanldle this type of thing.
>
>Thank you
>
>Bob Lee

Bob,
What I do is to use private datasessions. Every form is responsible of its own cursors/tables opened and any one could access a different session if need be.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform