Integer and Long

  • Thread starter Thread starter fniles
  • Start date Start date
F

fniles

In VB6, we use Integer and Long. In VB.NET does Integer becomes Int32 and
Long becomes Integer ?
Thanks.
 
In VB6, Integer is 16 bits, the same as .NET's Int16 data type. In VB.NET,
Integer is 32 bits, the same as .NET's Int32.

In VB6 Long is 32 bits, the same as .NET's Int32 data type. In VB.NET, Long
is 64 bits, the same as .NET's Int64.
 
fniles said:
In VB6, we use Integer and Long. In VB.NET does Integer becomes Int32 and
Long becomes Integer ?

VB6:

'Integer' = 16-bit signed integer.
'Long' = 32-bit signed integer.

VB.NET:

'Short' ('System.Int16') = 16-bit signed integer.
'Integer' ('System.Int32') = 32-bit signed integer.
'Long' ('System.Int64') = 64-bit signed integer.
 
Back
Top