The following table describes the Visual Basic built-in non-numeric value types, bytes, ranges, and their usages:
| Char | System.Char | 2 | 0 to 65535 (unsigned) | It is used for single Unicode characters. |
| Boolean | System.Boolean | 4 | False is equivalent to zero and True is equivalent to nonzero values | It is used for True/False values. |
| None | System.IntPtr | Platform-dependent | N/A | It is used for pointers in a memory address. |
| Date | System.DateTime | 8 | 1/1/0001 to 12/31/9999, 12:00:00 AM to 11:59:59.9999999 PM | It is used for moments in time and date. |
| String | System.String | Zero or more Unicode characters, character literals including escape sequences | 0 to approx. 2 billion Unicode characters | It is used for assigning string or array of string values. |
| Object | System.Object | 4 (on 32-bit platform) and 8 (on 64-bit platform) | Can store data of any type in a variable of type Object | It is used for assigning values of any type to variables of type object. |
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
