Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form DE vs. Load event
Message
De
31/01/2006 23:25:01
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Form DE vs. Load event
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
01092186
Message ID:
01092186
Vues:
57
I have quite a large application (VFP8 front-end, SQL-server back-end) in which I now find I require to use alternative databases for some forms, but only for some clients. Up to now many remote-view cursors have been dragged from the database designer into the form DE, but that brings with it a hard-coded path to the database container the view was dragged from. As far as I can see, if an alternative dbc is required I will have to change the .database property of each cursor at runtime, but I think a neater way will be to open each view explicitly in form.load(), preceded by SET DATABASE TO (MyDBC).

Apart from losing the 'visual' aspect of viewing tables/cursors in the form DE at design-time, are there any other disadvantages of opening cursors manually in form.load()? I can still set indexes, relations, etc. in code, but I want to make sure I don't miss anything before I make this change to many forms.

TIA,
Alan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform