Wiki Home

Vfp Command Question Mark Question Mark Question Mark


Namespace: VFP
Vagaries of the ? command
??? chr(123)
generates always a Syntax Error

Workaround:
??? "{123}"
-- Ibrahim Oezyurt

For additional background info, see WIKI on ???
-- ?wOOdy

It's funny that the current help doesn't mention using braces anymore, even though they still (VFP6) work:

Old FoxPro 2.6 help file for ???:
/-------------------------------------\
|               ???                   |
\-------------------------------------/
??? 

Sends output directly to the printer.

Three question marks direct the contents of directly to the printer without incrementing the printer column or row. ? allows you to send printer control codes directly to a printer without advancing the print head.

Printer control codes allow you to reset the printer, change type styles and sizes, enable or disable boldface printing, etc. These codes can consist of any combination of printable or non-printable characters that are specific to the printer you're using. You can direct control codes to the printer in several different ways:
  • Use CHR() to send ASCII characters directly to the printer.
  • Use braces { } to send printer codes or ASCII characters.
  • Use a combination of CHR() and braces.
Codes can be sent to the printer before printing begins and after printing ends with the _PSCODE
and _PECODE system memory variables. See the System Memory Variables in this online help facility for more information.

Printer control codes vary from printer to printer. The best source for information on printer control codes is the manual which accompanied your printer.
New VFP v6 help file for ???:

? Command

See Also

Sends output directly to the printer.

Syntax

? cExpression

Arguments

cExpression

Specifies the characters that are sent to the printer.

Remarks

A group of three question marks bypasses the printer driver and sends the contents of cExpression directly to the printer. cExpression must contain valid printer codes.

Printer control codes allow you to reset the printer, change type styles and sizes, and enable or disable boldface printing. These codes can consist of any combination of printable or nonprintable characters that are specific to the printer you're using. You can direct control codes to the printer in several different ways:

Use combinations of CHR( ) and quoted strings concatenated with + to send ASCII characters directly to the printer.

Use quotation marks to send a string containing printer codes or ASCII characters.

Codes can be sent to the printer before printing begins and after printing ends with the _PSCODE and _PECODE system variables. For more information, see _PSCODE and _PECODE.

Printer control codes vary from printer to printer. The best source for information about printer control codes is the manual that came with your printer.
Category VFP Commands
( Topic last updated: 2001.02.01 12:56:53 PM )