ID : 368
PrintDbg
Function
To output a string to the message output window.
Description
A string is output to the message output window.
This is used to simply output a value during debugging.
About separator
2 separators described below can be used.
- "," (comma)
- Joint specified strings by using a comma (,).
- ";" (semicolon)
- Joint specified strings. If specified at the end of the statement, it is suspended until the next output and subsequently jointed with the later output.
E.g.
PrintDbg "DENSO", "ROBOT" 'Output as "DENSO, ROBOT"
PrintDbg "D"; "E"; "N";
PrintDbg "S"; "O" 'Output as "DENSO"
Related Terms
Attention
-
Example
'!TITLE "Display of Message"
' Display "DEBUG" and "abcde" on the message output window
Sub Sample_PrintDbg
Dim aaa As String
' Assign the output message "abcde" to aaa
aaa = "abcde"
' Display "DEBUG" on the message output window
PrintDbg "DEBUG"
' Display "abcde" on the message output window
PrintDbg aaa
End Sub
ID : 368