Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To Open or Not To Open...
Message
De
07/08/1997 14:22:01
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00043504
Message ID:
00043588
Vues:
33
>>>I'm in the process of developing my VFP 5.0 framework/API, and I've got a question regarding the .DataEnvironment that I thought that you kind folks might help me answer by providing some feedback. I'm wondering whether or not it's better to set the .AutoOpenTables/.AutoCloseTable to .T. or .F.
>>>
>>>I'd really like to hear opinions, hopefully in support of both. Right now, I'm leaning towards setting them to .F., and I'll be happy to share the reasons why at the slightest provocation. ;-)
>>>
>>>TIA.
>>>
>>>George
>>
>>I like leaving them true. If there's any prep work needed I use the BeforeOpenTables Method. I find this particularly useful in ensuring that the tables are pointing to the correct DBC.
>>
>>JMHO
>>
>>Matt
>I have .AutoOpenTables = .F. because I put code in the form.Load which changes the path of each cursor.Database to CURDIR(). Perhaps I could move this code to BeforeOpenTables and it would work just as well, but I haven't tried it.

That is precisely what I'm doing

Matt
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform