home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
basic
/
library
/
pb
/
library3
/
erascn.bas
< prev
next >
Wrap
BASIC Source File
|
1994-04-11
|
1KB
|
51 lines
'Program Name : EraScn.bas
'Author : Lloyd L. Smith for Spectra Technical Support
'Date : 10-26-90
'Compuserve # : GO PCVENB, Vendor #12/Spectra, Tech Support ID 71530,2640
'Tech Support BBS: 813-625-1721, PC-Board, 8,N,1 USR HST 300 - 14.4, 24hrs
'Tech Support Fax: 813-625-1698 G2 & G3 compatible
'Tech Support Voc: 813-625-1172 Voice
'Description : How to erase a line, section in a line, vert section of screen
cls
'Build an 80 character string
a$="1234567890"
for i=1 to 8:b$=b$+a$:next i
'Print full 80 character screen
for i=1 to 25
locate i,1:print b$;
next i
'Erase row 3 of screen to the end
call EraLine(3)
'Erase part of a line in the middle
call EraPartLine(10,40,10)
'Erase a verticle line
call EraVertLine(9,4,14)
sub EraVertLine(r,c,l)
'r=row,c=column,l=length
for j=c to l
locate (r-1)+j,c
print space$(1);
next j
end sub
sub EraPartLine(r,c,l)
'r=row,c=column,l=length
locate r,c:print space$(l);
end sub
sub EraLine(r)
'r=row
locate r,1:print space$(80);
end sub