home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
baslib1.zip
/
GETPUT.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-03-27
|
1KB
|
56 lines
'Demo of GET & PUT statements
'By John Craig, Jeff Bretz
'Other rwts & conversion to quickbasic 2.01 by Dennis Dreyer
'GETPUT.BAS
locate 9,30:Print " "
locate 10,30,0:Print " A GET/PUT DEMO "
locate 11,30:Print " In Quickbasic 2.01 "
locate 12,30:Print " "
color 4,4,1:locate 13,30:Print " "
locate 8,30:Print " "
locate 20,22:color 4,0:Print " To Quit after DEMO press any key!"
for w=1 to 10000:next
clear:screen 1,1
color 6,1:cls
dim shared A(900),B(900):'Arrays to store sections of screen
for radius=21 to 147 step 21
circle (160,100),radius,,,,.6
paint (158+radius,100),radius mod 4,3 '{Graphics drawing rwts
next radius
'Get the area stored into arrays
get (30,50)-(130,100),A
get (190,100)-(290,150),B
while inkey$=""
'Glue arrays back in switched position
put (30,50),b,pset
put (190,100),A,pset
CALL DELAYSECOND
'Glue them back in original positions
put (30,50),a,pset
put (190,100),b,pset
CALL DELAYSECOND
wend
cls:end
SUB DELAYSECOND STATIC
delay=1
delay.seconds=delay
while delay.seconds
temporary$=time$
while time$=temporary$
wend
delay.seconds=delay.seconds -1
wend
end sub