home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
b
/
bb13.zip
/
SAMPLE1.BAS
< prev
next >
Wrap
BASIC Source File
|
1992-05-08
|
571b
|
25 lines
rem
rem Example of Program to print HELLO on screen.
rem
rem This program has waits for input before stopping.
rem We are waiting for input because in Windows, when program stops
rem the window is erased and we couldn't see the Hello.
rem
rem This program uses a function unique to BasicBasic. This is the
rem function OSTYPE. This function returns a 1 if DOS or a 2 if running
rem under Windows.
rem
print "Hello!"
if ostype=1 then
print
print "Press any key to continue..."
end if
100 if inkey$="" then goto 100