Compile-time errors

Compile-time errors are generated when the compiler cannot resolve a problem in your source code while it is compiling.  Examples include: typographical errors; assigning incorrect values to variables (such as "x$ = 5"); and attempting to use a variable name which has not been dimensioned when OPTION EXPLICIT (or #DIM ALL) has been turned on.

When a compile-time error is detected, PowerBASIC will display a message box indicating the error code, plus a brief description, along with the line number in the code where the error occurred.  The offending line of code will also be displayed.  If you are using the PowerBASIC IDE, the caret will move to the offending line once the error dialog has been dismissed.

 

See Also

Error Overview

Run-time errors

Disk Errors

Error Trapping