PRB: SET("LIBRARY") Does Not Return Path Information

Last reviewed: May 29, 1996
Article ID: Q109479
The information in this article applies to:
  • Microsoft FoxPro for Macintosh, version 2.5

SYMPTOMS

The function SET("LIBRARY") does not return the path information for .MLB files.

RESOLUTION

Macintosh library files can only be located in the System:Extensions folder, so the path will always be the same.

To get the Extensions folder path, use the FoxTools library function FxSystem(1). For example:

   SET LIBRARY TO FOXTOOLS
   SET LIBRARY TO FOXDOC ADDITIVE
   m.var = SET("LIBRARY")
   ? FxSystem(1) + ":" + SUBSTR( m.var, 1, AT( ",", m.var ) - 1 )

This will print the following path:

   Macintosh HD:System Folder:Extensions:FOXTOOLS.MLB

MORE INFORMATION

Steps to Reproduce Behavior

In the Command window, type the following:

   SET LIBRARY TO FOXTOOLS
   SET LIBRARY TO FOXDOC ADDITIVE
   ? SET("LIBRARY")

The following will be printed on the screen:

   FOXTOOLS.MLB, FOXDOC.MLB

This behavior differs from that of FoxPro for Windows and FoxPro for MS-DOS, which return the complete path to the library files. For example, the following is returned in FoxPro for Windows:

   C:\FOXPROW\FOXTOOLS.FLL, C:\FOXPROW\FOXDOC.FLL


Additional reference words: FoxMac 2.50b
KBCategory: kbprg kbcode kbprb
KBSubcategory:


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: May 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.