Chapter Contents |
Previous |
Next |
FLDCOLOR |
Category: | Widget or Field |
Syntax |
rc=FLDCOLOR(wcol-name,color,attribute,start,length); |
0 | successful |
0 | not successful |
Type: Numeric
Type: Character
''
to retain the current color. Colors are BLACK, BLUE, BROWN,
CYAN, GRAY, GREEN, MAGENTA, ORANGE, PINK, RED, WHITE, and YELLOW. SASCOLOR
window elements can also be used for color.
Type: Character
''
to retain the current attribute. Attributes are NONE,
BLINKING, HIGHLIGHT, HIREV, REVERSE, and UNDERLINE. If you specify a SASCOLOR
window element for color, then attribute is ignored because the SASCOLOR window element contains
a display attribute. However, you must specify a placeholder (''
) for attribute when you specify
arguments after it.
Type: Character
Type: Numeric
Type: Numeric
Details |
FRAME entry widgets can also use the _setColor method.
To change the color for the entire field or FRAME entry widget, you can use the FIELD function.
Examples |
Change the color of the third through seventh character positions in field ABC to red, and change the display attribute of those positions to high intensity:
rc=fldcolor('abc','red','highlight',3,5);
Change the color of a field, but leave the attributes the same:
rc=fldcolor('abc','red','',3,7);
Change the color of a field, using a SASCOLOR window element:
rc=fldcolor('abc','foreground','',3,7);
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.