Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the path for distributed apps.
Message
 
 
To
28/05/2001 23:34:19
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00512049
Message ID:
00512060
Views:
10
>Hi all. I'm starting to develop an application. In one button of one of the forms, I have a button to open another form. I got the message that the file xxx.xxx does not exists. I know this is because I have not telling the program where to look for that form with a SET PATH or SET DEFAULT command. (First question, what's the difference between these two commands?)
>How do I control what directory my user is going to use when installing his version of my program, or better yet, how to make the program to use whatever directory/path the user chooses? Do they must use the same directory/path I used when developing the app? What if I'm developing in my D: drive and they don't have a D: drive?
>TIA for your time.
>Ulises.

SET DEFAULT just specifies what drive and folder you want to be in. You can only specify one. SET PATH lets you define all the different folders for VFP to search for files in [this does the same thing as the DOS search PATH]. See VFP Help on both of these commands for more info.

FWIW, I never use the command SET DEFAULT. If I need to change where I am, I just use the CD command to change drives and/or current folder. In my development, I do have a search path setting to all the folders where I have my development tools, forms, classes, reports, data, icons, etc. An example is:

SET PATH TO D:\VisualStudio\VFP98;D:\Stonefield\SDT\Source;D:\Common\Classes;D:\Common\Tools;etc.....

I would not worry about where your forms exist during development as I am sure you will compile them into your APP or EXE file. As long as you do that, the path to where your forms are located during development is irrelevant.

Make sure your code in the button does not say DO FORM .\Form_Location\FormX. Just use the command DO FORM FormX.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform