ErrorMode

Family: Error · 2 forms

What it does

ErrorMode takes no arguments, and answers an integer. That is the first of 2 forms.

Syntax

1
ErrorMode() → integer
2
ErrorMode(mode integer)

Parameters

NameTypeIn forms
modeinteger2

What each form returns

1ErrorMode()integer
2ErrorMode(1)nothing

Example · generated

Form 1, the command hands back the id

DO  Print(ErrorMode())  Sync()LOOP

Form 2, you choose the id yourself

ErrorMode(1)DO  Sync()LOOP

ErrorMode is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

Related commands

4 commands in Error