BUG: Can't Restore View w/Default Drive Set to Network Drive

Last reviewed: June 27, 1995
Article 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 <path> 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.

MORE INFORMATION

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\"

REFERENCES

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.