PRB: ??? "{" Returns Syntax ErrorLast reviewed: October 7, 1996Article ID: Q96299 |
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):
RESOLUTIONReplace 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 following snippet provides an example:
SET PRINTER TO xxx.txt ??? "{123}" SET PRINTER TO MODIFY FILE xxx.txtThe 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 issue has been resolved as by design in FoxRaid RED00W5R.
|
Additional reference words: FoxDos FoxWin 1.02 2.00 2.50 2.50a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |