Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing DBCs within an application
Message
De
18/12/2001 23:11:34
 
 
À
09/08/2001 11:35:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00540872
Message ID:
00595968
Vues:
28
Hi Doug,

Thanks for your SetDataDirectory() method. It resolved my Local Vs Network problem with DBCs. In some forms, however, I seem to run into something that defies my understanding of how things run/fire.

The error I get is: Error Loading file - record number x. frmUsers . ControlSource: Alias 'USERS'is not found.

I have AutoOpenTables set to False. In my Load, I call SetDataDir() and it changes the Database property of all cursors to my network DBC. I get the above error even BEFORE I reach BeforeOpenTables() !! I'm trying to see what exactly it doesn't like but I just can't seem to STEP it earlier than the error.

I have to add that the DE is a mixture of tables and local views.

Your solution works fine on rather complex custom forms. It fails on simpler (user maintenance) forms that inherit a lot from a class. Regardless of any inherited code, is there any way to STEP thru code before this dreaded error occurs ?

Any ideas ?

Thanks

Henry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform