Chapter Contents |
Previous |
Next |
DISPLAYED |
Category: | Control or Field |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
rc=DISPLAYED(wvar-name); |
1 | visible |
0 | not visible |
Type: Numeric
Type: Character
Details |
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.
Example |
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');
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.