home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
QBAS
/
BB14.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