What are the basic types in visual basic?

Answer:
Visual Basic 2005, 2008, and 2010 use the following types:
  • Boolean
  • Byte
  • Char
  • Date
  • Decimal
  • Double
  • Integer
  • Long
  • Object
  • SByte
  • Short
  • Single
  • String
  • UInteger
  • ULong
  • User-Defined
  • UShort



Boolean holds values that can be only True or False.

Byte holds unsigned 8-bit integers ranging in value from 0 through 255.

Char holds unsigned 16-bit code points ranging in value from 0 through 65535.

Date holds 64-bit values that represent dates ranging from January 1 of the year 0001 through December 31 of the year 9999, and times from 12:00:00 AM through 11:59:59.9999999 PM.

Decimal holds signed 128-bit values representing 96-bit integer numbers scaled by a variable power of 10. The scaling factor specifies the number of digits to the right of the decimal point; it ranges from 0 through 28.

Double holds signed 64-bit double-precision floating-point numbers ranging in value from -1.79769313486231570E+308 through -4.94065645841246544E-324 for negative values and from 4.94065645841246544E-324 through 1.79769313486231570E+308 for positive values.

Integer holds signed 32-bit integers ranging in value from -2,147,483,648 through 2,147,483,647.

Long holds signed 64-bit integers ranging in value from -9,223,372,036,854,775,808 through 9,223,372,036,854,775,807 (9.2...E+18).

Object holds 32-bit addresses that refer to objects. You can assign any reference type (string, array, class, or interface) to an Object variable. An Object variable can also refer to data of any value type (numeric, Boolean, Char, Date, structure, or enumeration).

SByte holds signed 8-bit integers ranging in value from -128 through 127.

Short holds signed 16-bit integers ranging in value from -32,768 through 32,767.

Single holds signed 32-bit single-precision floating-point numbers ranging in value from -3.4028235E+38 through -1.401298E-45 for negative values and from 1.401298E-45 through 3.4028235E+38 for positive values.

String holds sequences of unsigned 16-bit (2-byte) code points ranging in value from 0 through 65535. The first 128 code points (0-127) of Unicode correspond to the letters and symbols on a standard U.S. keyboard.

UInteger holds unsigned 32-bit integers ranging in value from 0 through 4,294,967,295.

ULong holds unsigned 64-bit integers ranging in value from 0 through 18,446,744,073,709,551,615.

User-Defined holds data in a format you define. The Structure statement defines the format.

UShort holds unsigned 16-bit integers ranging in value from 0 through 65,535.
First answer by Aamjohns. Last edit by Aamjohns. Contributor trust: 2 [recommend contributor recommended]. Question popularity: 1 [recommend question].