ID: Q110537
The information in this article applies to:
Saving a view that has a default directory set to a network or external drive, setting a different default directory to a local drive, and then setting the view to the previously saved view file will not restore the default drive to the network or external drive.
After restoring the view in these circumstances, set the default directory to the network drive by using the SET DEFAULT TO <path> command.
Microsoft has confirmed this to be a problem in FoxPro 2.5, 2.5a, and 2.5b for Windows and in FoxPro 2.5b and 2.6a for Macintosh. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
The following commands, if executed from the Command window, can be used to reproduce the problem. Commands are given for both the Windows and Macintosh platforms. The directory, drive, volume, and folder names used are sample names. The actual names used when this is tried must exist. There should also be a connection to the network or external drives.
SET DEFAULT TO f:\ && Where f:\ is a network drive
? SET("DEFAULT")+CURDIR() && This will display "f:\"
CREATE VIEW c:\fpwdata\test.vue
SET DEFAULT TO c:\fpwdata && A local drive and directory
? SET("DEFAULT")+CURDIR() && This will display "c:\fpwdata"
SET VIEW TO c:\fpwdata\test.vue
? SET("DEFAULT")+CURDIR() && This should display "f:\"
* but will display "c:\fpwdata"
SET DEFAULT TO "Net HD:Programs" && Where "Net HD:Programs" is
* an external drive
? SET("DEFAULT")+CURDIR() && This will display "Net HD:\
* Programs\"
CREATE VIEW "Macintosh HD:FPMData\test.vue"
SET DEFAULT TO "Macintosh HD:FPMData" && A local drive and folder
? SET("DEFAULT")+CURDIR() && This will display "Macintosh HD:\
* FPMData\"
SET VIEW TO "Macintosh HD:FPMData:test.vue"
? SET("DEFAULT")+CURDIR() && This should display "Net HD:\
* Programs\" but will display
* "Macintosh HD:\FPMData\"
FoxPro for Macintosh "User's Guide," version 2.5, pages 145-149
FoxPro for Macintosh "Language Reference," version 2.5, pages 30-33, 301- 302, 303, 723-726 and 804
FoxPro for Windows "User's Guide," version 2.5, pages U7-14 to U7-18
FoxPro for Windows "Language Reference," version 2.5, pages L3-16, L3-351, L3-353, L3-912 to L3-913 and L3-1015
Additional reference words: FoxWin FoxMac 2.50 2.50a 2.50b buglist2.50 buglist2.50a buglist2.50b buglist2.60a path KBCategory: kbprg kbbuglist kbcode KBSubcategory: FxnetworkGeneral
Last Reviewed: June 27, 1995