PRB: SET("LIBRARY") Does Not Return Path InformationLast reviewed: May 29, 1996Article ID: Q109479 |
The information in this article applies to:
SYMPTOMSThe function SET("LIBRARY") does not return the path information for .MLB files.
RESOLUTIONMacintosh 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 BehaviorIn 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.MLBThis 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
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |