Wednesday 23 January 2013

VB.net Basic Variable Types

VB.net Variable Types:

To get started the first Variable type you will use is a Type Call "String", a string contains display variables, for example. VB.Net Contains 6 Characters, another Type is "Char" a char is a single Display Value for a Byte of Data. Example "a" is a char, Another type is Byte, byte is a numeric value for a Display Value. There are 0 - 255 Ascii Characters and Bytes in a default Ascii Table. Another Type is Integer, a numeric Value -2.142 billion To 2.142 billion.

Example:

Dim TempString As String = cStr("TempString")
Dim TempChar As Char = cChar("c")
Dim TempByte As Byte = cByte(10)
Dim TempInteger As Integer = 10

No comments:

Post a Comment