General information
Category:
The Mere Mortals Framework
>James,
>I didn't find one, but if you are using the MetaDbc feature of the framework then the app has already opened the table. I just use a cSelect object to select the table then grab the full path out of the table by doing a locate on the key. Then use JustPath() to return a valid path. This works for me with an exe distributed to three different sites and they all map the data three different ways.
>
>This code sets the path to a common database that is shared by multiple clients. Each client's data is stored in a unique database.
>
>lcOldPath = SET("PATH")
>loSelect = CreateObject("cSelect","MetaDbc")
>locate for ckey = "COMMON"
>lcCommonPath = JustPath(Alltrim(metadbc.cLocalDBC))
>lcNewPath = Alltrim(lcOldPath) + ", " + lcCommonPath
>SET PATH TO &lcNewPath
I'll try it, Bill. Thanks. I was under the impression that simply adding the database to metadbc would automatically add them to the path, but I guess I was mistaken.
Previous
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