Short Data Type (Visual Basic)
Updated: July 20, 2015
For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
Holds signed 16-bit (2-byte) integers that range in value from -32,768 through 32,767.
Short data type to contain integer values that do not require the full data width of
Integer. In some cases, the common language runtime can pack your
Short variables closely together and save memory consumption.
The default value of
Short is 0.
Shortdata type widens to
Double. This means you can convert
Shortto any one of these types without encountering a System.OverflowException error.
Type Characters. Appending the literal type character
Sto a literal forces it to the
Shorthas no identifier type character.
Framework Type. The corresponding type in the .NET Framework is the System.Int16 structure.