Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MM and Stonefield: Return Current Database
Message
De
03/02/2003 12:13:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
MM and Stonefield: Return Current Database
Divers
Thread ID:
00748449
Message ID:
00748449
Vues:
76
Hello everybody,
we just started to work with Stonefield and here is the first question:
every time we run the application, Stonefield suppose to check if any tables in the database need update. So far everything works. cStonefield.Init() calls it's OpenDefaultDatabase()method that sets our database. No problem here, just one thing: cStonefield class sets current database in the Default datasession. Then cStonefield class calls oSDTMgr.NeedUpdate() method. Now, oSDTMgr runs in it's own Private datasession where our current database is not open. So naturally, oSDTMgr.Parent.GetDatabase() returns empty string and DBC() returns empty string, tables count is 0 and so on. Another words Update() is not done.
It's pretty obvious why Update() didn't happened but what would be the best and accurate solution for this problem? I couldn't find in Developer's Guide anything about it unless I missed that.
Should we set SDTMgr datasession to Default?
I would appreciate any thoughts or advise.
Thank you very much.
Regards
Igor
Répondre
Fil
Voir

Click here to load this message in the networking platform