Section C.2. ControlChars Class


C.2. ControlChars Class

The Microsoft.VisualBasic namespace includes a ControlChars class with shared fields that can be used for device control and outputting special characters. Most of the shared fields also have equivalent Visual Basic intrinsic constants.

Field

Value

Intrinsic constant

Back

Chr(8)

vbBack

Cr

Chr(13)

vbCr

CrLf

Chr(13) & Chr(10)

vbCrLf

FormFeed

Chr(12)

vbFormFeed

Lf

Chr(10)

vbLf

NewLine

Chr(13) & Chr(10)

vbNewLine

NullChar

Chr(0)

vbNullChar

Quote

Chr(34)

 

Tab

Chr(9)

vbTab

VerticalTab

Chr(11)

vbVerticalTab


These constants must be qualified with their class name, as in:

     If (dataString = ControlChars.CrLf) Then 




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net