Difference between revisions of "WROWS()"

From Recital Documentation Wiki
Jump to: navigation, search
 
(Products)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=WROWS()=
 
 
 
==Class==
 
Screen Windows
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to return the number of rows in a window
 
Function to return the number of rows in a window
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
[[ACTIVATE SCREEN]], [[ACTIVATE WINDOW]], [[CLEAR WINDOWS]], [[DEACTIVATE WINDOW]], [[DEFINE WINDOW]], [[HIDE WINDOW]], [[MOVE WINDOW]], [[MODIFY MEMO]], [[RELEASE WINDOWS]], [[RESIZE WINDOW]], [[RESTORE WINDOW]], [[SAVE WINDOW]], [[SHOW WINDOW]], [[SET COMMANDWINDOW]], [[SET ERRORWINDOW]], [[SET STATUS]], [[SET TRACEWINDOW]], [[SET WINDOW OF EDIT]], [[SET WINDOW OF MEMO]], [[WCOLS()]], [[WEXIST()]], [[WVISIBLE()]], [[WONTOP()]], [[WOUTPUT()]]
+
[[ACTIVATE SCREEN]], [[ACTIVATE WINDOW]], [[CLEAR WINDOWS]], [[DEACTIVATE WINDOW]], [[DEFINE WINDOW]], [[HIDE WINDOW]], [[MOVE WINDOW]], [[MODIFY MEMO]], [[RELEASE WINDOWS]], [[RESIZE WINDOW]], [[RESTORE WINDOW]], [[SAVE WINDOW]], [[SHOW WINDOW]], [[SET COMMANDWINDOW]], [[SET ERRORWINDOW]], [[SET STATUS]], [[SET TRACEWINDOW]], [[SET WINDOW OF EDIT]], [[SET WINDOW OF MEMO]], [[WCOLS()]], [[WEXIST()]], [[WONTOP()]], [[WOUTPUT()]], [[WTITLE()]], [[WVISIBLE()]]
  
  
Line 25: Line 18:
 
<code lang="recital">
 
<code lang="recital">
 
define window browse;
 
define window browse;
from 2,2 to 12,43;
+
  from 2,2 to 12,43;
title "BROWSE Window";
+
  title "BROWSE Window";
color n/bg;
+
  color n/bg;
float;
+
  float;
shadow
+
  shadow
 
activate window browse
 
activate window browse
 
? wrows("browse")
 
? wrows("browse")
Line 37: Line 30:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:Screen Windows]]
 +
[[Category:Screen Windows Functions]]

Latest revision as of 16:56, 8 December 2009

Purpose

Function to return the number of rows in a window


Syntax

WROWS([<window-name>])


See Also

ACTIVATE SCREEN, ACTIVATE WINDOW, CLEAR WINDOWS, DEACTIVATE WINDOW, DEFINE WINDOW, HIDE WINDOW, MOVE WINDOW, MODIFY MEMO, RELEASE WINDOWS, RESIZE WINDOW, RESTORE WINDOW, SAVE WINDOW, SHOW WINDOW, SET COMMANDWINDOW, SET ERRORWINDOW, SET STATUS, SET TRACEWINDOW, SET WINDOW OF EDIT, SET WINDOW OF MEMO, WCOLS(), WEXIST(), WONTOP(), WOUTPUT(), WTITLE(), WVISIBLE()


Description

The WROWS() function returns the number of rows in either the current window, or the window specified by <window-name>. A window is an area of the screen designated for output and input. There is no limit to the number of defined windows. Windows are created with the DEFINE WINDOW command, and are activated with the ACTIVATE WINDOW command. With no parameter, the WROWS() function returns the number of rows in the currently active window. If no windows are active, the WROWS() function returns a zero. If the window <window-name> is specified and does not exist, or is not active, the WROWS() function returns a zero.


Example

define window browse;
  from 2,2 to 12,43;
  title "BROWSE Window";
  color n/bg;
  float;
  shadow
activate window browse
? wrows("browse")
         9


Products

Recital