Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : SCREENCOL

SCREENCOL
Returns the number of columns on the user’s physical screen. (F)
Invocation
number = SCREENCOL
 
On return, contains the number of columns. Its syntax is binary with length 2. For SDK sessions, the number returned is for internal use only.
Example
The following rule determines the number of columns on the screen and prints it to the message log:

 
RULE EDITOR ===>
SCREENCOL_1;
_ LOCAL NUM_COLS;
_ ------------------------------------------------------------------------
_ ------------------------------------------------------------+-----------
_ NUM_COLS = SCREENCOL; | 1
_ CALL MSGLOG('THE NUMBER OF COLUMNS ON THE SCREEN IS: ' || | 2
_ NUM_COLS); |
_ ------------------------------------------------------------------------

 
Resulting Output
Pressing PF2 after executing this rule displays the following result:

 
----------------------- INFORMATIONAL MESSAGE LOG ---------------------
COMMAND ===> SCROLL ===> P
THE NUMBER OF COLUMNS ON THE SCREEN IS: 80

 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved