XPRINT COLOR statement  

Purpose

Set the foreground color (and, optionally, the background color) for various XPRINT statements.

Syntax

XPRINT COLOR foreground& [, background&]

Remarks

Colors are expressed as RGB values, or use -1 for the default color. If the background parameter is -2, the background is made transparent. If either parameter is -3, the existing color is not changed.  A host printer must first be connected with XPRINT ATTACH.  If a host printer is not attached, error 57 is generated.

See also

Built In RGB Color Equates, XPRINT, XPRINT ATTACH

Example

' Set colors to red foreground and blue background.

XPRINT COLOR %RED, RGB(0,0,191)