home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Wdepth
-
- PARAMETERS _base
-
- _base = IF( TYPE("_base") != "N", 0, _base)
-
- IF TYPE("scr_level") != "N"
- RETURN(24)
- ENDIF
-
- IF scr_level-1 <= 0
- RETURN(24)
- ENDIF
-
- IF _base >= 0
- RETURN(VAL(SUBSTR(allwindows[scr_level - 1], 7, 2)) - VAL(SUBSTR(allwindows[scr_level - 1], 1, 2)) - 1 - _base)
- ELSE
- * return the number of rows in the window area from base value
- * passing a 0 returns the window depth
- RETURN(VAL(SUBSTR(allwindows[scr_level - 1], 7, 2)) - VAL(SUBSTR(allwindows[scr_level - 1], 1, 2)) - _base)
- ENDIF
-
- * End of File