Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use tables in Private Datasession ?
Message
De
07/06/2012 17:18:14
Luis Navas
Independent Consultant
Auckland, Nouvelle Zélande
 
 
À
07/06/2012 04:00:57
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01545423
Message ID:
01545624
Vues:
51
>Hi,
>When I put the tables into the DE, VFP9 will prompt out a dialog box
>to locate the tables in which database. So the tables which in DE is belong
>to the database, it is already specified.
>
>I need access which database and which tables at runtime.
>
>Derek

Yes I understand that, but that is why you will write code in the BeforeOpenTables event and change the Database there like this:
This.Cursor1.Database = Goapp.cPath + "MyData.dbc" &&Goapp.cPath stores the path to the DB
This.Cursor2.Database = Goapp.cPath + "MyOtherData.dbc"
This.Cursor3.Database = "c:\Test.dbc"
This.Cursor4.Database = "d:\op_serv.dbc"
I never forget a face, but in your case I will make an exception :-)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform