# Error test.bb

Post Reply
User avatar
Dutchman
Posts: 148
Joined: Tue Aug 06, 2019 4:47 pm
Location: Netherlands

# Error test.bb

Post by Dutchman » Fri Nov 22, 2019 12:07 pm

# Error test.bb is a demo of the function Error$(n) which displays Error messages:

Code: Select all

{/Extensions/Console/! Con utils}
CALL Error$(-1) ' initiate to set 'last'
'
OPTION TAB 6
PRINT "Error","Message"
FOR i=0 TO Error$.last+1
  PRINT i,Error$(i)
NEXT i
END
Output:

Code: Select all

Error Message
 0    no error
 1    file/directory access error
 2    amount of read/written data is not what was expected
 3    text is not a number
 4    failing symmetry
 5    parameter(s) not accepted
 6    Size is not correct
 7    Unknown error
It is still a long way to go

Post Reply