Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Location of SDT Meta data
Message
From
19/04/2000 14:25:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Location of SDT Meta data
Miscellaneous
Thread ID:
00361447
Message ID:
00361447
Views:
48
I’m using Stonefield Database Toolkit with the Mere Mortals framework, my problem right now is that users have a different drive letter mapping the path to the common database.

Meta data files should be found by means of the path established into property cMetaDataDir. Since this property is already set when the .exe is built, the StoneField class can’t be instantiated and properly added to the framework for those users which have a different drive letter mapped to the database destination.

Right now I’m using the framework's GetSetting function in order to retrieve the value of the "DBC Locations - Local" key from the windows registry to set the cMetaDataDir property on the Init event of Stonefield Class:

this.cMetaDataDir = This.Parent.GetSetting( "dbc locations - local" ,"MyDBC" , "" )
dodefault()

This seems to solve the problem. However, I’d like to read someone else’s opinion/advise or any other way around to solve this.

I'm probably missing something.

Thanks and Regards

Oscar Corte
Reply
Map
View

Click here to load this message in the networking platform