Visual Basic Language Reference  

Long Data Type

Long variables are stored as signed 64-bit (8-byte) integers ranging in value from -9,223,372,036,854,775,808 through 9,223,372,036,854,775,807.

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

Appending the literal type character L to a literal forces it to the Long data type. Appending the identifier type character & to any identifier forces it to Long.

The equivalent .NET data type is System.Int64.

See Also

Data Type Summary | Int64 Structure | Integer Data Type | Short Data Type | Type Conversion Functions | Conversion Summary | Efficient Use of Data Types