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

ID: Q109479

2.50 MACINTOSH

      kbprb

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:   kbprb

KBSubcategory:

    Keywords          : kbcode kbprb
    Version           : 2.50
    Platform          : MACINTOSH

Last Reviewed: May 21, 1998 © 1999 Microsoft Corporation. All rights reserved. Terms of Use.