Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set path without ini
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00902495
Message ID:
00902498
Views:
17
>Could anyone give me a hint on how to set application, data, and other paths in an application class without using an ini text file. I want to use a table for the ini file. It seems that the app does not know where data files are located until I have a reference to the table with the path info.

Well, it would have to find that table, the same way it would have to find an INI or XML file to read the info from. You can't avoid that. If you are distributing an EXE and copying that EXE to each workstation, I would assume that you would place the INI in the same folder as the EXE, so it reads the path to the data server from there and changes accordingly. If you replace the INI (user configurable-file) for a DBF in the same place then that is basically the same and the same idea applies.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform