Home > Language Reference > Statements
#Warning Statement
Raises a user defined warning.
Syntax
#Warning Message
| Parameter | Description |
| Message | Any expression that can be converted into a string. |
Remarks
This statement causes the warning #9063 to be raised during compilation and displays the text specified by the Message parameter in the Build tab of the Output Window. The Message parameter can be any expression including literal constants, conditional compilation constants and operators.
This statement is typically used to verify the value of the conditional compilation constants. For example:
#Const RELEASE = 0 #Const EVAL = 1 #Const VERSION = EVAL #If VERSION = RELEASE Then #Warning "Building release version" #ElseIf VERSION = EVAL #Warning "Building evaluation version" #Else #Error "Invalid value for VERSION constant: " & VERSION #End If
This statement can also be used when developing a project. For example to note the position of a problem:
#Warning "TODO: test this function"
Also refer to #Error.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | - |
| Windows CE | Windows CE 3.0 | - |