PRB: "Unrecognized Phrase/Keyword..." with Macro SubstitutionLast reviewed: June 1, 1996Article ID: Q110128 |
The information in this article applies to:
SYMPTOMSWhen you use macro substitution with a filename that contains spaces, the error message "Unrecognized phrase/keyword in command" occurs.
CAUSEThe Macintosh file system allows filenames to have spaces. This feature can cause errors in programs that use macro substitution and don't allow for spaces. Macro substitution in FoxPro is direct text substitution. Consider the following code:
x='MAC HD:FOXPRO:DATABASE' USE &xThis code is exactly equivalent to the following USE command:
USE MAC HD:FOXPRO:DATABASEHowever, this USE command isn't valid because FoxPro thinks the filename is MAC and doesn't understand what HD:FOXPRO:DATABASE is supposed to be.
RESOLUTIONTo work around this problem, do one of the following:
|
Additional reference words: VFoxMac 3.00b FoxMac 2.50b file name marco
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |