home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 13
/
CD_ASCQ_13_0494.iso
/
maj
/
419
/
printbox.bas
< prev
next >
Wrap
BASIC Source File
|
1994-03-13
|
1KB
|
30 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1994 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
DECLARE SUB XQPrint (St$, BYVAL Row%, BYVAL Column%, BYVAL VAttr%, BYVAL Page%, BYVAL Fast%)
SUB PrintBox (St$, TopRow%, LeftCol%, BottomRow%, RightCol%, VAttr%, Page%, Fast%)
Cols% = RightCol% - LeftCol% + 1
IF Cols% < 1 OR (BottomRow% - TopRow% < 0) OR LEN(St$) = 0 THEN
EXIT SUB
END IF
IF LEN(St$) = 1 THEN
t$ = STRING$(Cols%, St$)
ELSE
DO UNTIL LEN(t$) >= Cols%
t$ = t$ + St$
LOOP
t$ = LEFT$(t$, Cols%)
END IF
FOR Row% = TopRow% TO BottomRow%
XQPrint t$, Row%, LeftCol%, VAttr%, Page%, Fast%
NEXT
END SUB