DADiSP Worksheet Functions > Function Categories > Query Functions > NUMWINDOWS
Returns the total number of Windows in the Worksheet.
NUMWINDOWS
addwin(10 - numwindows)
adds the necessary amount of Windows to equal 10.
NUMWINDOWS returns the total number of Windows, hidden and visible. See NUMVWINS return the number of visible Windows.