Microsoft KB Archive/110537

{| = BUG: Can't Restore View w/Default Drive Set to Network Drive =
 * width="100%"|

ID: Q110537

The information in this article applies to:


 * Microsoft FoxPro for Macintosh, versions 2.5b, 2.6a
 * Microsoft FoxPro for Windows, versions 2.5, 2.5a, and 2.5b

SYMPTOMS
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.

RESOLUTION
After restoring the view in these circumstances, set the default directory to the network drive by using the SET DEFAULT TO command.

STATUS
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.

Steps to Reproduce Problem
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.

FoxPro for Windows
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"

FoxPro for Macintosh
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\"