home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-386-Vol-2of3.iso
/
b
/
baswiz19.zip
/
BW$BAS.ZIP
/
VWSQ.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-01-29
|
1KB
|
30 lines
' +----------------------------------------------------------------------+
' | |
' | 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