Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MM 7 and Multiple Data Folders???
Message
From
03/12/2002 13:19:19
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
03/12/2002 11:12:52
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00729020
Message ID:
00729080
Views:
21
Darrell,

We use multiple dbcs (11 or so in production and counting!), all in separate folders. We use the MetaDBC approach... our MetaDBC contains a path record for each dbc and we filter it dynamically based on user selection.

Did you make sure you set your app object's lUseDBCMgrMetaData = .F. so it "knows" to use the registry?

BTW, it was looking in your app folder because that's where it starts looking when it can't find the dbc in the paths already set by your app.

Hope that helps,
---J

>Is it possible to use MM 7 with multiple data folders (i.e. data2001, data2002, data2003, etc.) and used the registry settings (DBC Locations - Local) to determine which data folder a particular workstation uses?
>
>I have the need to have multiple data folders for my application (i.e. data2001, data2002, data2003, etc.). I am currently using MM 7 and VFP 7. I have done this in the past with a previous version for MM (4?) by having a menu option for the client to select a school year and the program would set the registry entries accordingly and all worked like a charm! I can't seem to achieve this with MM 7.
>
>I am trying to test this process by renaming the data folder to data2003, setting the registry entries to \myapp\data2003\ then trying to run myapp.exe. When I try to open a form, I get an open dialog box. Since I'm not sure what it is trying to open, I hit cancel and get the error \myapp\id.dbf does not exist. Not sure why the id.dbf is trying to be opened in the \myapp folder verses the \myapp\data2003 folder. I then get several procedure cancelled errors and the programs terminates.
>
>Now if I set the registry to \myapp\data\ and rename the \myapp\data2003\ folder back to \myapp\data\ all works fine.
>
>What am I missing? Why will the framework only work in a folder named data?
>
>TIA for any and all advice.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform