ControlChars Class
The Microsoft.VisualBasic namespace includes a ControlChars class whose shared fields can be used for device control and outputting special characters. Most of the shared fields also have equivalent Visual Basic intrinsic constants, as the following table shows:
|
Field |
Value |
Intrinsic constant |
|---|---|---|
|
Back |
Chr(8) |
|
|
Cr |
Chr(13) |
|
|
CrLf |
|
|
|
FormFeed |
Chr(12) |
|
|
Lf |
Chr(10) |
|
|
NewLine |
|
|
|
NullChar |
Chr(0) |
|
|
Quote |
Chr(34) |
none |
|
Tab |
Chr(9) |
|
|
VerticalTab |
Chr(11) |
|
Note that these constants must be qualified with the class name, as in:
If str = ControlChars.CrLf Then
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access