<< Prev        Next >>

ID : 122

#Warning

Function

To output a warning at the time of compiling.

Syntax

#Warning "message"

Guaranteed entry

Message
Designate a message to output by immediate data of a string. Enclose it with "" (double quotation marks).

Description

A warning message is output to the syntax error log list during compiling (syntax check).

As it is output as warning, compiling and task startup are not affected.

Related Terms

Attention

-

Example

'!TITLE "Display Warning Message"
' Display a warning message designated in syntax error log list during compiling

#Warning "This is before Sample_Warning"

Sub Sample_Warning

  Dim aaa As Integer

#Warning "This is during Sample_Warning"

  aaa = 0

  ' Display "0" on the message output window
  PrintDbg aaa

End Sub

#Warning "This is after Sample_Warning"

ID : 122

<< Prev        Next >>