Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Safe Table Opening Code -How's This?
Message
De
26/10/2001 12:03:28
 
 
À
26/10/2001 11:47:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00573683
Message ID:
00573713
Vues:
17
>What sort of safety do you want?
>
>In general, if you see that you need to do the same thing over and over again, it seems a good idea to create a function or method, as you did here.
>
>If you use an object instead, you can save yourself the trouble of closing the table in code: the table is closed in the class'es Destroy() event.

Hilmar,

This is only true if the class has (or is) a private datasession (or if the class is part of a dataenvironment that closes the tables). Otherwise, the tables will stay open.
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform