non-fatal error condition

non-fatal error condition


named common Index Level BASIC, Pick source code files (R83)
Syntax
Category BASIC
Type Definition
Description a type of error that occurs when a FlashBASIC program encounters a condition which is resolved by the FlashBASIC runtime package, although not to the specific need of the program.

The most common occurrence of this is the "variable has not been assigned a value, zero used" message. This particular instance occurs if a reference is made to a variable on the RIGHT side of an "=" (equal) BEFORE being referenced (assigned) on the LEFT side of an "=".
Options
See Also \ run array.variable error condition # l debugger
Example dim array(10)
for i = 1 to 10
array(i) = x
next i

This results in 10 non-fatal error messages:

[B10] in program "name", Line n:
Variable has not been assigned a value; zero used.
Warnings Often, this message flashes by too quickly to read on the screen. One way around this is to run the program with an "e" option, which makes ANY type of error a "fatal error condition". Once inside the FlashBASIC debugger, the "l" and "/" commands can be used to "list" the line and display the current value of the variables.
Compatibility D3 7.0 AP R83
named common Index Level BASIC, Pick source code files (R83)