Hello world/Standard error: Difference between revisions
Added Chipmunk Basic
Not a robot (talk | contribs) (Add Miranda) |
(Added Chipmunk Basic) |
||
Line 179:
=={{header|BASIC}}==
{{works with|QBasic}}▼
<syntaxhighlight lang="basic">▼
ON ERROR GOTO ManejoErrores▼
ERROR 99▼
END▼
ManejoErrores:▼
PRINT "Googbye World!"▼
</syntaxhighlight>▼
==={{header|BaCon}}===
<syntaxhighlight lang="freebasic">EPRINT "Goodbye, World!"</syntaxhighlight>
==={{header|BASIC256}}===
<syntaxhighlight lang="basic256">onerror errortrap
throwerror 99
end
errortrap:
print "Goodbye World!"
return</syntaxhighlight>
</syntaxhighlight>▼
==={{header|
20 on error goto 50
30 error 99 : we force an error
40 end
▲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:
<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
=={{header|Batch File}}==
|