SAS Component Language Dictionary |
Reports whether a control or field is currently visible
Category: |
Control or Field
|
-
rc
-
indicates whether the FRAME entry control
or field is visible:
Type:
Numeric
-
wvar-name
-
is the name of a control or field. This
name cannot be an element of an array or an expression. An invalid wvar-name halts the program.
Type:
Character
In SAS/AF applications, DISPLAYED reports whether a
control is currently visible or whether it has the NONDISPLAY attribute. In
FSEDIT, DISPLAYED tells you whether a field is visible on the current screen
of a multiscreen application, regardless of whether the control has the NONDISPLAY
attribute. This function is useful in multiscreen applications in which the
application developer wants to be on a specific screen for a field.
If a control is not currently displayed, then your application
can use the EXECCMD routine to issue scrolling commands to change the screen
position or to issue scrolling commands that are specific to the procedure
(for example, the =n command in the FSEDIT procedure).
The control or field cannot be an element of an array.
To report this information for an array element, use FIELD instead.
FRAME entry controls can also use the _isDisplayed or
_isHidden method.
Test whether the SALARY field is displayed on the current
screen of an FSEDIT application. If not, issue an FSEDIT scrolling
command to display the screen that contains the field:
if (displayed(salary)=0) then
call execcmd('=salary');
ERROR
ERROROFF
ERRORON
FIELD
MODIFIED
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.