Language

STOP [error]

Terminates execution of a program, closes all files opened by the program, and returns control to the operating system.

  • error - A numeric expression.

The @error@ is the value which will returned to operating system; if not specified SmallBasic returns 0.

On DOS/Windows, The 'error' value is known as ERRORLEVEL