Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When to close cursors
Message
De
16/05/2001 07:53:02
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00507737
Message ID:
00507738
Vues:
9
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform