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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top