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

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