nedcomp hosting homepage

Producten en Diensten
Dedicated servers
Datacenter informatie
Partners, resellers
Helpdesk informatie
Technische docs, tools
Support homepage
ASP componenten
Praktische ASP, ASP.NET
Visual route server
Whois (domein gegevens)
Software documentatie
Whitepapers
Zoeken
Nedcomp / algemeen

Zoeken
 

Copyright © Nedcomp Hosting
Telefoon nr :   +31 184 670111
Fax nummer :   +31 184 631384
E-mailadres :   info@nedcomp.nl
 

Visual Basic Language Reference  

Char Data Type

Char variables are stored as unsigned 16-bit (2-byte) numbers ranging in value from 0 through 65535. Each number represents a single Unicode character. Direct conversions between the Char data type and the numeric types are not possible, but you can use the AscW and ChrW functions for this purpose.

Appending the literal type character C to a single-character string literal forces it to the Char data type. This is required if the type checking switch (Option Strict) is on, as the following example shows:

Option Strict On
' ...
Dim CharVar As Char
CharVar = "Z"    ' Cannot convert String to Char with Option Strict On.
CharVar = "Z"C   ' Successfully assigns single character to CharVar.

The equivalent .NET data type is System.Char.

See Also

Data Type Summary | Char Structure | Integer Data Type | Type Conversion Functions | Conversion Summary | Asc, AscW Functions | Chr, ChrW Functions