WINDOW.GetNoOf

Previous  Next

 

noof = WINDOW.GetNoOf( [nType AS INTEGER=VIEW_ANY] ) AS INTEGER

 

noof = WINDOW.GetNoOf( nType   AS INTEGER,

                      hWindow AS HANDLE ) AS INTEGER

 

noof = WINDOW.GetNoOf( VIEW_ANALYSIS, strTitle AS STRING ) AS INTEGER

 


 

Returns the number of windows of optionally type (Grid or MaxA) or the number of controls.  Note; that the second syntax (get no of controls) must have VIEW_CONTROL as first parameter.  Future may have other types such as dialog/form controls.

 

Whan nType is set to VIEW_MAIN, it will return 1 as long as the Mainframe window is available.  The MainFrame window will not be counted when nType is set to VIEW_ANY

 

The third syntax will return the no of analysis windows withe the specified title.  For instance, if you want to know the number of windows with a "Position vs Position" analysis.

 

Type Constants included in MaxA.BIS

 

CONST VIEW_ANY                = 0xFFFF

CONST VIEW_MAIN               = 0x0001

CONST VIEW_GRID               = 0x0002

CONST VIEW_ANALYSIS           = 0x0004

CONST VIEW_CONTROL            = 0x0100