Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Database and private datasessions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Database and private datasessions
Divers
Thread ID:
00049960
Message ID:
00049960
Vues:
96
I must be missing something simple here. I have a project that needs to run all private datasessions. No problem there. The problem is how the database gets opened.

I have a method .SetEnvironment() in the form template that is called in the .BeforeOpenTables() method of forms to show. I can open the database via OPEN DATABASE myDB and things are just fine. But I also have a DB class which handles all that stuff and although the form recognizes the object and runs the .OpenDatabase() method, the database is not opened by doing so.
*
* This works when MyDB is hardcoded in.
*
OPEN DATABASE MyDB
*
* This doesn't work although goDB is recognized as an object but none * of the database commands function. Db name is a property within.
*
goDB.OpenDatabase()

What am I missing here or am I stuck with hardcoding the database name? I haven't tried instantiating goDB with each form as that seems to be a waste.

Steve
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform