Jump to content

Hello world/Standard error: Difference between revisions

Added Chipmunk Basic
(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!"
RESUME
</syntaxhighlight>
 
==={{header|BaCon}}===
<syntaxhighlight lang="freebasic">EPRINT "Goodbye, World!"</syntaxhighlight>
 
==={{header|BASIC256}}===
<syntaxhighlight lang="basic256">onerror errortrap
onerror errortrap
throwerror 99
end
 
 
errortrap:
print "Goodbye World!"
return</syntaxhighlight>
</syntaxhighlight>
 
==={{header|ZX SpectrumChipmunk Basic}}===
{{works with|QBasicChipmunk Basic|3.6.4}}
<syntaxhighlight lang="basicqbasic">10 cls
20 on error goto 50
30 error 99 : we force an error
40 end
ON50 ERROR GOTOrem ManejoErrores
1060 PRINTprint #1;"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:
 
<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}}==
2,130

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.