Microsoft KB Archive/109479: Difference between revisions
(importing KB archive) |
m (Text replacement - """ to """) |
||
Line 1: | Line 1: | ||
{| | {| | ||
|width="100%"| | |width="100%"| | ||
= PRB: SET( | = PRB: SET("LIBRARY") Does Not Return Path Information = | ||
'''ID: Q109479''' | '''ID: Q109479''' | ||
Line 14: | Line 14: | ||
== SYMPTOMS == | == SYMPTOMS == | ||
The function SET( | The function SET("LIBRARY") does not return the path information for .MLB files. | ||
== RESOLUTION == | == RESOLUTION == | ||
Line 24: | Line 24: | ||
<pre> SET LIBRARY TO FOXTOOLS | <pre> SET LIBRARY TO FOXTOOLS | ||
SET LIBRARY TO FOXDOC ADDITIVE | SET LIBRARY TO FOXDOC ADDITIVE | ||
m.var = SET( | m.var = SET("LIBRARY") | ||
? FxSystem(1) + | ? FxSystem(1) + ":" + SUBSTR( m.var, 1, AT( ",", m.var ) - 1 ) | ||
</pre> | </pre> | ||
This will print the following path: | This will print the following path: | ||
Line 38: | Line 38: | ||
<pre> SET LIBRARY TO FOXTOOLS | <pre> SET LIBRARY TO FOXTOOLS | ||
SET LIBRARY TO FOXDOC ADDITIVE | SET LIBRARY TO FOXDOC ADDITIVE | ||
? SET( | ? SET("LIBRARY") | ||
</pre> | </pre> | ||
The following will be printed on the screen: | The following will be printed on the screen: |
Latest revision as of 10:45, 20 July 2020
PRB: SET("LIBRARY") Does Not Return Path InformationID: Q109479 2.50 MACINTOSH kbprb 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 INFORMATIONSteps 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.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 |