I've had ongoing problems with SET PATH and SET DEFAULT since I've began to learn VFP earlier this year. I am hoping you gurus can help me clarify between the two and perhaps figure out why I can't get them to work as expected.
In the beginning of my main program I issue a SET DEFAULT to the directory where that database resides. This works fine. Throughout my application there are points where I use GETFILE() to get the path of a file, and SET PATH to set the path to that file's respective path (I parse the path from the string without the filename) so I can use it. I can never seem to get this to work. It always tells me the file can not be found. If I issue a CURDIR() to see what the current directory is, it never changes from the default directory.
My question is:
How can I tell FoxPro to look into a specific directory for a file.
Any help is appreciated.
-Kevin
In the beginning of my main program I issue a SET DEFAULT to the directory where that database resides. This works fine. Throughout my application there are points where I use GETFILE() to get the path of a file, and SET PATH to set the path to that file's respective path (I parse the path from the string without the filename) so I can use it. I can never seem to get this to work. It always tells me the file can not be found. If I issue a CURDIR() to see what the current directory is, it never changes from the default directory.
My question is:
How can I tell FoxPro to look into a specific directory for a file.
Any help is appreciated.
-Kevin