Introduction MTB Statements File System Compiler Applications Reference Guide Index

Language Structure Data Division I/O Format Division Procedure Division Mnemonics

(Change Colors)

Mnemonic: (Change Colors=ARG1$,ARG2$,ARG3$,ARG4$,ARG5$)
Hex equivalent: "@0E0E0Evvwwxxyyzz@"

where:
vv = the foreground color
ww = the background color
xx = the invisible color (for TM's, TP's, and RJ's)
yy = the border color
zz = the entry field color

Discussion: The mnemonic changes all of the screen colors on the Comet console, or within the current Comet window.

ARG1$ is the foreground color
ARG2$ is the background color
ARG3$ is the invisible color (for TM's, TP's, and RJ's)
ARG4$ is the border color
ARG5$ is the entry field color

All of these arguments are in hex and may be string constants or a string variable containing the hex representation of the screen color.

See Screen Colors for a list of color codes.

Also see (Change Color) for a way to change the foreground color only.

Example:
a. 100 FORMAT (Change colors="@0F@","@A0@","@00@","@C0@","@0F@")
   .
   PRINT (0,100)

b. Print (0) (Change colors="@0F@","@A0@","@00@","@C0@","@0F@")