home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
b
/
bb13.zip
/
SAMPLE2.BAS
< prev
next >
Wrap
BASIC Source File
|
1992-01-04
|
751b
|
30 lines
rem
rem Example of Program to print HELLO on screen.
rem
rem Now we have expanded to the hello program to do several more things.
rem First, the prompt is now positioned in the middle of the screen
rem (It looks nicer).
rem
rem Second, we use a windows command to adjust the size of our display
rem window. The Windows size command allows us to adjust the area of screen
rem displayed while in windows. This is nice for getting rid of blank
rem space. The Windows size command is ignored when in DOS mode.
rem
rem windows size 30,9,50,11
cls
locate 10,36
print "Hello!"
if ostype=1 then
locate 12,26
print "Press any key to continue..."
end if
100 if inkey$="" then goto 100