Hello world/Standard error: Difference between revisions

Content added Content deleted
(Add Miranda)
(Added Chipmunk Basic)
Line 179: Line 179:


=={{header|BASIC}}==
=={{header|BASIC}}==
{{works with|QBasic}}
<syntaxhighlight lang="basic">
ON ERROR GOTO ManejoErrores
ERROR 99
END


ManejoErrores:
PRINT "Googbye World!"
RESUME
</syntaxhighlight>

==={{header|BaCon}}===
==={{header|BaCon}}===
<syntaxhighlight lang="freebasic">EPRINT "Goodbye, World!"</syntaxhighlight>
<syntaxhighlight lang="freebasic">EPRINT "Goodbye, World!"</syntaxhighlight>


==={{header|BASIC256}}===
==={{header|BASIC256}}===
<syntaxhighlight lang="basic256">
<syntaxhighlight lang="basic256">onerror errortrap
onerror errortrap
throwerror 99
throwerror 99
end
end



errortrap:
errortrap:
print "Goodbye World!"
print "Goodbye World!"
return
return</syntaxhighlight>
</syntaxhighlight>


==={{header|ZX Spectrum Basic}}===
==={{header|Chipmunk Basic}}===
{{works with|Chipmunk Basic|3.6.4}}
<syntaxhighlight lang="qbasic">10 cls
20 on error goto 50
30 error 99 : we force an error
40 end
50 rem ManejoErrores
60 print "Goodbye World!"
70 cont</syntaxhighlight>

==={{header|QBasic}}===
<syntaxhighlight lang="basic">ON ERROR GOTO ManejoErrores
ERROR 99
END

ManejoErrores:
PRINT "Googbye World!"
RESUME</syntaxhighlight>


==={{header|ZX Spectrum Basic}}===
On the ZX Spectrum, standard error is on stream 1:
On the ZX Spectrum, standard error is on stream 1:


<syntaxhighlight lang="zxbasic">
<syntaxhighlight lang="zxbasic">10 PRINT #1;"Goodbye, World!"
20 PAUSE 50: REM allow time for the user to see the error message</syntaxhighlight>
10 PRINT #1;"Goodbye, World!"
20 PAUSE 50: REM allow time for the user to see the error message
</syntaxhighlight>


=={{header|Batch File}}==
=={{header|Batch File}}==