Chapter Contents |
Previous |
Next |
Text Entry: _setColorNum |
Syntax | |
Details | |
Examples |
Syntax |
CALL NOTIFY (text-field-name, '_setColorNum', color, <attribute<, start-column<, length>>>); |
Argument | Type | Description |
---|---|---|
color |
N | assigns to the object the value of tyep COLOR. See the refid=commonchap page=no chapater. |
attribute |
N | assigns to the object the value of type ATTR. |
start-column |
N | specifies the column number where the changes start |
length |
N | specifies the number of columns to be affected by the changes |
Details |
See Using the Text Entry Class.
Examples |
blue
.
call notify ('text1','_set_color_num_', colornum);
highlight
. In this statement, a null placeholder is used for the color
argument because only the text attribute is being changed:
call notify ('text1','_set_color_num_', . ,attrnum);
green
. Again, note the
null placeholder for the display attribute argument.
call notify ('text1','_set_color_num_', colornum, . ,4,5);
red
.
The display attribute is stored in the field ATTRNUM, a numeric field with
the type ATTR, whose value is
reverse
.
call notify ('text1','_set_color_num_', colornum,attrnum,1,4);
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.