Futurebasic/Language/Reference/syserror statement

From Wikibooks, open books for an open world
Jump to navigation Jump to search

SYSERROR[edit | edit source]

Syntax[edit | edit source]

SYSERROR = OSErrorCode%

Description[edit | edit source]

This statement sets the value of FutureBasic's internal SYSERROR variable. FB sets this variable automatically when you perform disk file operations. The SYSERROR statement can be used to reset the variable to zero after one of these other operations has set it to a nonzero value. In virtually every case, you will use _noErr (0) as the OSErrorCode% parameter.

Note[edit | edit source]

The internal SYSERROR variable does not behave like an ordinary variable. For example, you cannot set its value by means of an INPUT or READ statement.

See Also[edit | edit source]

SYSERROR function; ERROR function; ON ERROR