2.50 2.50a 2.50b 2.60
MS-DOS
kbprg kbfixlist kbbuglist
The information in this article applies to:
- Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, 2.5b, 2.6
SYMPTOMS
The FULLPATH() function returns the incorrect pathname for an application
that is currently running.
STATUS
Microsoft has confirmed this to be a problem in FoxPro versions 2.5, 2.5a,
2.5b, and 2.6 for MS-DOS. This problem was corrected in FoxPro version 2.6a
for MS-DOS.
MORE INFORMATION
Steps to Reproduce Problem
NOTE: These steps assume that drive C contains a main FoxPro directory
called FPD26 and an empty directory called TEST.
- In the Command window, type "SET DEFAULT TO C:\TEST" (without the
quotation marks).
- Create a new project named TESTPROJ.PJX.
- In the Project window, choose Add. In the Type popup, select Menu.
Choose New and save the menu as MAINMENU.MNX.
- Under Prompt, type "Test FULLPATH" (without the quotation marks).
- In the popup to the left of "Test FULLPATH," choose Command.
- In the text box to the left of Command, type "DO testfull.prg"
(without the quotation marks).
- Close the menu and save the changes.
- In the Project window, choose Add. In the Type popup, select Program.
Choose New and save the program as TESTFULL.PRG.
- In the TESTFULL.PRG program window, type the following:
SET PATH TO C:\TEST
WAIT WINDOW 'MAINMENU.MPR: ' + FULLPATH('MAINMENU.MPR')
WAIT WINDOW 'TESTPROJ.APP: ' + FULLPATH('TESTPROJ.APP')
- Close the program window and save the changes.
- In the Project window, choose Build.
- Select the Build Application radio button, and then choose OK. Choose
Yes when asked if you want to save changes to the project.
- Choose Build to accept the default application name, TESTPROJ.APP.
- Close the Project window.
- Run the TESTPROJ.APP application.
- Choose the Test FULLPATH menu.
- Note that the first wait window displays the following text:
MAINMENU.MPR: C:\TEST\MAINMENU.MPR
Press ENTER to clear the wait window.
Note that the next wait window displays the following text, containing the
incorrect pathname:
TESTPROJ.APP: C:\TEST\MAINMENU.MPX
NOTE: To restore the FoxPro menu to its normal state, type "SET SYSMENU TO
DEFAULT" (without the quotation marks) in the Command window.
|