home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a075 / 1.img / TOOLKIT1.EXE / SST277.PRG < prev    next >
Encoding:
Text File  |  1989-11-02  |  642 b   |  26 lines

  1. ********************
  2.  
  3. FUNCTION Wdepth
  4.  
  5.    PARAMETERS _base
  6.  
  7.    _base = IF( TYPE("_base") != "N", 0, _base)
  8.  
  9.    IF TYPE("scr_level") != "N"
  10.       RETURN(24)
  11.    ENDIF
  12.  
  13.    IF scr_level-1 <= 0
  14.       RETURN(24)
  15.    ENDIF
  16.    
  17.    IF _base >= 0
  18.       RETURN(VAL(SUBSTR(allwindows[scr_level - 1], 7, 2)) - VAL(SUBSTR(allwindows[scr_level - 1], 1, 2)) - 1 - _base)
  19.    ELSE
  20.       * return the number of rows in the window area from base value
  21.       * passing a 0 returns the window depth
  22.       RETURN(VAL(SUBSTR(allwindows[scr_level - 1], 7,  2)) - VAL(SUBSTR(allwindows[scr_level - 1], 1,  2)) - _base)
  23.    ENDIF
  24.  
  25. * End of File
  26.