![]() Chapter Contents |
![]() Previous |
![]() Next |
| COLORLIST |
| Category: | Selection List |
| Syntax | |
| Details | |
| Example | |
| See Also |
Syntax |
| selections=COLORLIST(color-set,num-sel<,message <,autoclose>>); |
0. To specify
an unlimited number of selections, use a value such as 9999 that is larger
than the number of available selections. A user cannot make a number of selections
that exceeds the number of items in the list.
'Y' |
closes the window automatically. (This is the default.) |
'N' |
leaves the window open until the user explicitly closes it. |
| Details |
| Example |
usrdev=devlist('sashelp.devices','monitor',
'Select a device. ');
device=substr(usrdev,41,8);
devcolor=colorlist(device,4);
Use a current result list to process multiple selections:
listid=makelist();
rc=curlist(listid);
selection=devlist('sashelp.devices','monitor',
'Select a device.');
device=substr(selection,41,8);
devcolor=colorlist(device,4);
n=listlen(listid);
do i=1 to n;
color=getitemc(listid,i);
put color=;
end;
Display a color selection dialog window:
color=colorlist('?',1,'Design a color for the
bars');
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.