Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Raw printing chokes on {
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Miscellaneous
Thread ID:
01573725
Message ID:
01573730
Views:
126
This message has been marked as the solution to the initial question of the thread.
Likes (1)
>I am trying to send data directly out to a variety of different printers such as POS receipt printers, label printers, etc using Raw printing through the VFP ??? command. Recently a customer discovered that if any of the text being sent out includes the opening curly brace { then I get a syntax error. Try this command:
>??? "{"
>
>It doesn't work. Any way to work around this?
>
>Thanks!

From: http://fox.wikis.com/wc.dll?Wiki~??? :

Therefore, if you want to send CHR(123) to your printer, then you have to wrap it in another "{" and "}" pair. The easiest way is to do as follows:
cToPrint = " { ControlCode Some Text" + CHR(15) + "more Text { more ControlCodes"
??? STRTRAN(cToPrint, "{", "{{}")
Frank Camp
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform