The information in this article applies to:
SYMPTOMSAttempting to print a single brace ("{" or "}") with the ??? command results in a syntax error because FoxPro expects a matching pair of braces in the command line. CAUSEThe ??? command sends text directly to the printer. This method is normally used to send "Escape" codes to change printer settings. Using braces is one of three ways to identify ASCII characters. For example, each of the following identify the letter "k" (107 on the ASCII chart):
RESOLUTION
Replace all single left braces ("{") with "{123}" and single right
braces ("}") with "{125}". "{123}" will be interpreted as ASCII 123
and the "{" will be printed out and likewise for the right brace.
The text file will contain a single left brace.
Another alternative is to use "{{}" and "{}}" to output a single left and right brace, respectively. The following command, if used in the above code example, will also output a single left brace to the text file:
STATUSThis behavior is by design. Additional query words: FoxDos FoxWin
Keywords : FxprgGeneral |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |