Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Database Pathing Issue
Message
De
22/02/2008 12:55:11
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:
01295448
Message ID:
01295450
Vues:
11
>I have an app which had hardcoded paths all over it. I have moved the pathing into an INI file.
>One thing we wanted to do was provide a way to move the data to another location, so an entry
>in the INI file makes sense.
>
>The problem is now the DBC. The forms in this app have tables in their DE's, which are pointing
>to the old DBC location. Event though the OPEN DATABASE command is pointing to the location from
>the INI file, the DE's are looking at the old copy of the DBC. One possibility is removing the tables
>and views from the DE's and use a data class or CA, although this would be a tremendous amount of
>work.
>
>How do I solve this issue?

You can also open tables in the Form.Load() Event. I think this would be simpler than a data class or CA, but it might still be lots of work to review hunderds of forms, for example.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform