home *** CD-ROM | disk | FTP | other *** search
- ' +----------------------------------------------------------------------+
- ' | |
- ' | BASWIZ Copyright (c) 1990-1993 Thomas G. Hanlin III |
- ' | |
- ' | The BASIC Wizard's Library |
- ' | |
- ' +----------------------------------------------------------------------+
-
- DECLARE SUB WGetMem0 (BYVAL Rows%, BYVAL Columns%, Bytes&, ErrCode%)
- DECLARE SUB WInit0 (BYVAL Rows%, BYVAL Columns%, ErrCode%)
- DECLARE SUB WOpen0 (BYVAL Rows%, BYVAL Columns%, BYVAL SRow1%, BYVAL SCol1%, BYVAL SRow2%, BYVAL SCol2%, Handle%, ErrCode%)
-
- DEFINT A-Z
-
- SUB WInit (Rows, Columns, ErrCode)
- WGetMem0 Rows, Columns, Bytes&, ErrCode
- IF ErrCode = 0 THEN
- Bytes& = SETMEM(-(Bytes& + Bytes&))
- WInit0 Rows, Columns, ErrCode
- END IF
- END SUB
-
- SUB WOpen (Rows, Columns, Row1, Col1, Row2, Col2, Handle, ErrCode)
- WGetMem0 Rows, Columns, Bytes&, ErrCode
- IF ErrCode = 0 THEN
- Bytes& = SETMEM(-Bytes&)
- WOpen0 Rows, Columns, Row1, Col1, Row2, Col2, Handle, ErrCode
- END IF
- END SUB
-