home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Wwidth
-
- PARAMETERS _base
-
- _base = IF( (TYPE("_base") != "N"), 0, _base)
-
- * return the number of columns in the window area
- * from base value passing a 0 returns the window width
-
- IF scr_level - 1 <= 0
- RETURN(79 - _base)
- ENDIF
-
- IF _base >= 0
- RETURN(VAL(SUBSTR(allwindows[scr_level - 1], 10, 2)) - ;
- VAL(SUBSTR(allwindows[scr_level - 1], 4, 2)) - 1 - _base)
- ELSE
- RETURN(VAL(SUBSTR(allwindows[scr_level - 1], 10, 2)) - ;
- VAL(SUBSTR(allwindows[scr_level - 1], 4, 2)) + _base)
- ENDIF
-
- * End of File