| title | Debug.Print | |||
|---|---|---|---|---|
| description | Learn about the Print command and how it evaluates an expression or displays specified text. | |||
| ms.date | 11/04/2016 | |||
| ms.topic | reference | |||
| f1_keywords |
|
|||
| helpviewer_keywords |
|
|||
| ms.custom | ide-ref | |||
| author | Mikejo5000 | |||
| ms.author | mikejo | |||
| ms.subservice | general-ide |
Evaluates an expression or displays specified text.
>Debug.Print texttext
Required. The expression to evaluate or the text to display.
You can use the question mark (?) as an alias for this command. So, for example, the command
>Debug.Print expAcan also be written as
? expABoth versions of this command return the current value of the expression expA.
>Debug.Print DateTime.Now.Day