SAS Component Language Dictionary |
Category: | Control or Field |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
CALL SETCR(advance,return<,modify>); |
specifies how the cursor moves when a user presses the carriage-return key:
The cursor moves to the next field in the same row. This option makes the carriage-return key work like a horizontal tab key. When the last field in the current row is reached, the cursor moves to the first field in the next row.
The cursor moves to the first field in the next line. This option makes the carriage-return key work like a new-line key. When the last line is reached, the cursor moves to the first field in the first line.
The cursor moves to the first field in the next line in the current column. This option makes the carriage-return key work like a vertical tab key. When the last field in the current column is reached, the cursor moves to the top of the next column.
The cursor moves to the command line, or to the first field in the window if the window has no command line.
specifies whether a carriage return passes control back to the application:
Details |
SETCR works like a more powerful version of CONTROL ENTER for defining the behavior of the carriage-return key. This routine overrides the ENTER or NOENTER option of the CONTROL statement.
Example |
Move the cursor vertically to the first field in the next line in the current column when the user presses the carriage-return key. Control does not pass to the application, and the field is not modified by a carriage return.
call setcr('vtab','noreturn','nomodify');
See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.