Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing tables with private data session.
Message
De
26/06/2007 18:25:17
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01235725
Message ID:
01235876
Vues:
15
>>>Naomi,
>>>I am running the form from within the prg but at the very beginning. No tables are open before the form is loaded. All tables are opened from menu selections in the form.
>>
>>Look at the code in FAQ #31943 - just instantiate that as a local object, and when it goes out of scope, it will close anything that was opened after it was created.
>
>Dragan,
>years ago back in the dark days of DOS we wrote a procedure to do just that. We still use it but it requires a local array sent to the procedure by reference and both Start and End procedure calls. I think we will be phasing it out and using your method as it sure looks easy.

That's what I like about objects - they're perfect to keep the references in themselves, then in the end commit a seppuku and lose them, no extra coding needed.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform