Hi all,
I've come across a strange problem working with FoxPro/Win 2.6a under Win2K :
SYS(2005) returns "C:\FPW26\\FOXUSER.DBF" instead of "C:\FPW26\FOXUSER.DBF", which is what it returns under my old Win95 development machine.
In our program we apply the following routine:
USE (SYS(2005)) AGAIN ALIAS ResAgain IN 0
as we store the color settings and the locations of the windows there for easier retrieval later on.
The above line works fine under Win95, and in the standalone .exe as well ; under Win2K the IDE will generate a "File access denied" error.
However, replacing the above line with
USE SUBSTR((SYS(2005), RAT('\',SYS(2005))+1) AGAIN ALIAS ResAgain IN 0
seemed to do the trick -- not in the least because the path of the resource file is included in the PATH environment variable.
As I've noticed the same extra '\' behaviour in the LIBRARY environment variable, I figured I'd post this hint onto the forum...
Best regards,
Jan Schenkel
"As we grow older we grow both wiser and more foolish at the same time." (De Rochefoucald)
I've come across a strange problem working with FoxPro/Win 2.6a under Win2K :
SYS(2005) returns "C:\FPW26\\FOXUSER.DBF" instead of "C:\FPW26\FOXUSER.DBF", which is what it returns under my old Win95 development machine.
In our program we apply the following routine:
USE (SYS(2005)) AGAIN ALIAS ResAgain IN 0
as we store the color settings and the locations of the windows there for easier retrieval later on.
The above line works fine under Win95, and in the standalone .exe as well ; under Win2K the IDE will generate a "File access denied" error.
However, replacing the above line with
USE SUBSTR((SYS(2005), RAT('\',SYS(2005))+1) AGAIN ALIAS ResAgain IN 0
seemed to do the trick -- not in the least because the path of the resource file is included in the PATH environment variable.
As I've noticed the same extra '\' behaviour in the LIBRARY environment variable, I figured I'd post this hint onto the forum...
Best regards,
Jan Schenkel
"As we grow older we grow both wiser and more foolish at the same time." (De Rochefoucald)