Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio .NET
Reference
Data Types
 Short Data Type

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2003/.Net Framework 1.1

Other versions are also available for the following:
Visual Basic Language Reference
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

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker