Home All Groups Group Topic Archive Search About
Author
12 Dec 2006 5:59 PM
fniles
In VB6, we use Integer and Long. In VB.NET does Integer becomes Int32 and
Long becomes Integer ?
Thanks.

Author
12 Dec 2006 6:47 PM
Tim Patrick
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.
-----
Tim Patrick - www.timaki.com
Start-to-Finish Visual Basic 2005

Show quoteHide quote
> In VB6, we use Integer and Long. In VB.NET does Integer becomes Int32
> and
> Long becomes Integer ?
> Thanks.
Author
12 Dec 2006 10:34 PM
Herfried K. Wagner [MVP]
"fniles" <fni***@pfmail.com> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>