Intrinsic define (macro value) set by the compiler
Syntax
__FB_ERR__
Description
__FB_ERR__ indicates if
-e,
-ex, or
-exx was specified on the compiler command line at the time of compilation of a module.
Returns one of the following values:
value | description |
0 | '-e', '-ex', '-exx' not specified |
1 | '-e' was specified |
3 | '-ex' was specified |
7 | '-exx' was specified |
__FB_ERR__ is always defined.
Example
'Example code to demonstrate a use of __FB_ERR__
Dim err_command_line As UByte
err_command_line = __FB_ERR__
Select Case err_command_line
Case 0
Print "No Error Checking enabled on the Command Line!"
Case 1
Print "Some Error Checking enabled on the Command Line!"
Case 3
Print "QBasic style Error Checking enabled on the Command Line!"
Case 7
Print "Extreme Error Checking enabled on the Command Line!"
Case Else
Print "Some Unknown Error level has been set!"
End Select
Differences from QB
See also