Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data base path
Message
 
À
04/02/2008 10:02:07
Ian Hammond
Greenfield Software Ltd
St. Neots, Royaume Uni
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01289054
Message ID:
01291014
Vues:
9
Ian,

>Could anyone tell me if there is a method that allows me to obtain the file path of the currently opened FoxPro database from MM?

If you have specified the full path to the database in the connection string, you can make the following call to get the database connection string and parse out the path (obviously you need to replace "Northwind" with the name of your database):
mmAppBase.DatabaseMgr.GetConnectionString("Northwind");
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform