object.Print [outputlist]
The outputlist argument has the following syntax and parts:
{Spc(n) | Tab(n)} expression charpos
Multiple expressions can be separated with either a space or a semicolon.
All data printed to the Immediate window is properly formatted using the decimal separator for the locale settings specified for your system. The keywords are output in the appropriate language for the host application.
For Boolean data, either True
or False
is printed. The True and False keywords are translated according to the locale setting for the host application.
Date data is written using the standard short date format recognized by your system. When either the date or the time component is missing or zero, only the data provided is written.
Nothing is written if outputlist data is Empty. However, if outputlist data is Null, Null
is output. The Null keyword is appropriately translated when it is output.
For error data, the output is written as Error errorcode
. The Error keyword is appropriately translated when it is output.
The object is required if the method is used outside a module having a default display space. For example an error occurs if the method is called in a standard module without specifying an object, but if called in a form module, outputlist is displayed on the form.
Note Because the Print method typically prints with proportionally-spaced characters, there is no correlation between the number of characters printed and the number of fixed-width columns those characters occupy. For example, a wide letter, such as a "W", occupies more than one fixed-width column, and a narrow letter, such as an "i", occupies less. To allow for cases where wider than average characters are used, your tabular columns must be positioned far enough apart. Alternatively, you can print using a fixed-pitch font (such as Courier) to ensure that each character uses only one column.
Assert Method | Print # Statement | Spc Function | Tab Function
Applies To: Form Object, Forms Collection | UserControl Object