Chapter Contents

Previous

Next
TEXCOLOR

TEXCOLOR



Finds the color index of the color currently selected to draw text strings

Operating States: GKOP, SGOP, WSAC, WSOP
Return Codes: 0, 8


Syntax
Description
Argument Definitions
See Also


Syntax

CALL GASK('TEXCOLOR', color-index, return-code-variable);


Description

The GASK('TEXCOLOR', . . . ) routine returns the current text color. If a GSET('TEXCOLOR', . . . ) function has not been previously submitted, GASK('TEXCOLOR', . . . ) returns the default value, 1. The color index returned corresponds to a color specification in the following order:

  1. the color specified in a GSET('COLREP', . . . ) function

  2. the nth color in the colors list of the COLORS= graphics option

  3. the nth color in the device's default colors list.


Argument Definitions

color-index numeric variable name; returns the color index of the color used to draw text.
return-code-variable numeric variable name; returns the return code of the routine call.

See Also

COLORS= graphics option (see COLORS)
GASK('COLREP', . . . ) routine
GSET('COLREP', . . . ) function
GSET('TEXCOLOR', . . . ) function


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.