Chapter Contents

Previous

Next
Text Entry: _setColorStr

Text Entry: _setColorStr



Assigns the text entry field color and/or display attribute specified by an SCL attribute string


Syntax
Details
Example

Syntax

CALL NOTIFY (text-field-name, '_setColorStr', attribute-string);

Argument Type Description
attribute-string
C assigns the SCL attribute string containing the color and highlighting specifications.


Details

This method enables you to use the STRATTR function by creating an SCL attribute string and assigning its value with the STRATTR function.


Example

This example uses the STRATTR function to create an SCL attribute string, STR, containing the values red and reverse. _setColorStr uses STR to change the text color and display attribute for TEXT1 to red and reverse, respectively.

str=strattr('red','reverse',1,mlength(str));
call notify('text1','_set_color_str_',str);


Chapter Contents

Previous

Next

Top of Page

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