Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataEnvironment Issues...
Message
De
09/04/1999 11:33:48
 
 
À
09/04/1999 11:30:29
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00206909
Message ID:
00206911
Vues:
16
>When I create a form and add a table into the dataenvironment, the table's path is stored. If this is on a network, say G: the table's path would be G:\tablename. So ,when I move the app to a different drive, the reference becomes invaid and the form would not load. Is there a way I can overcome this?

Your application may restore it to right path in run-time:
***DataEnvironment.BeforeOpenTables event
LOCAL cDatadir
SELECT config
GO top
cDatadir=alltrim(config.datadir)
thisform.setall("database",cDatadir+oApp.dbcname+".dbc","cursor")

It works if all DE members are DBC-ed tables. If you have free tables this code should be modified.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform