Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MM and Stonefield: Return Current Database
Message
From
03/02/2003 12:13:35
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
MM and Stonefield: Return Current Database
Miscellaneous
Thread ID:
00748449
Message ID:
00748449
Views:
75
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
Reply
Map
View

Click here to load this message in the networking platform