Export (0) Print
Expand All

Short Data Type

Short variables are stored as signed 16-bit (2-byte) integers ranging in value from -32,768 through 32,767.

Note   The Short data type can be converted to the Integer, Long, Single, Double, or Decimal data type without encountering a System.OverflowException error.

Appending the literal type character S to a literal forces it to the Short data type.

The equivalent .NET data type is System.Int16.

See Also

Data Type Summary | Int16 Structure | Type Conversion Functions | Conversion Summary | Byte Data Type | Integer Data Type | Long Data Type | Integer Data Type Changes in Visual Basic | Efficient Use of Data Types

Show:
© 2014 Microsoft