Debug Object
Syntax
Debug.Clear -or- Debug.Print [expr[; ...][;]]
Group
Description
-
Debug.Clear - Clears the output window.
-
Debug.Print - Prints the exprs to the output window. Use ; to separate expressions. A num is it automatically converted to a string before printing (just like Str$( )). If the instruction does not end with a ;, a newline is printed at the end.
Example
Sub Main X = 4 Debug.Print "X/2="; X/2 ' 2 Debug.Print "Start..."; ' don't print a newline Debug.Print "Finish" ' print a newline End Sub