Export (0) Print
Expand All

Print and Display Constants

When you call print and display functions, you can use the following constants in your code in place of the actual values.

ControlChars Module Members

Member Constant Equivalent Description
CrLf vbCrLf Chr(13) + Chr(10) Carriage return/linefeed character combination.
Cr vbCr Chr(13) Carriage return character.
Lf vbLf Chr(10) Linefeed character.
NewLine vbNewLine Chr(13) + Chr(10) New line character.
NullChar vbNullChar Chr(0) Character having value 0.
na vbNullString String having value 0 Not the same as a zero-length string (""); used for calling external procedures.
na vbObjectError -2147221504 Error number. User-defined error numbers should be greater than this value. For example:
Err.Raise(Number) = vbObjectError + 1000
Tab vbTab Chr(9) Tab character.
Back vbBack Chr(8) Backspace character.
FormFeed vbFormFeed Chr(12) Not useful in Microsoft Windows.
VerticalTab vbVerticalTab Chr(11) Not useful in Microsoft Windows.
Quote na Chr(34) Quotation mark character (" or ') used to enclose values.

Requirements

Namespace: Microsoft.VisualBasic

Module: Constants

Assembly: Microsoft Visual Basic .NET Runtime (in Microsoft.VisualBasic.dll)

See Also

Intrinsic Constants and Enumerations | Print, Printline Functions | Write, WriteLine Functions

Show:
© 2014 Microsoft