General information
Category:
The Mere Mortals Framework
Title:
Location of SDT Meta data
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only