ConvertDataTypes
.com
Convert data types programming in one click !
Languages :
C
-
C++
-
Objective C
-
Java
-
JavaScript
-
Python
-
C#
-
VB
-
VB.net
Convert :
Boolean
Byte
Byte()
Double
Integer
Long
Single
String
To :
Boolean
Byte
Byte()
Double
Integer
Long
Single
String
Convert
Byte()
to
Integer
in
VB
26918 hits
Dim vIn(1) As Byte
vIn(0) = &H80
vIn(1) = &H0
Dim vOut As Integer
For i = 0 To (UBound(vIn) - LBound(vIn))
If (i = 0 And ((vIn(0) And &H80) > 0)) Then 'negative value on first byte ?
vOut = vOut Or -(CLng(vIn(i)) * (2 ^ (8 * (LenB(vOut) - 1 - i))))
Else
vOut = vOut Or (CLng(vIn(i)) * (2 ^ (8 * (LenB(vOut) - 1 - i))))
End If
Next i
The most viewed convertions in VB
Convert
Double
to
String
in
VB
85922 hits
Convert
Long
to
String
in
VB
76553 hits
Convert
Integer
to
String
in
VB
52854 hits
Convert
Boolean
to
String
in
VB
49155 hits
Convert
Double
to
Integer
in
VB
43218 hits
Convert
Integer
to
Double
in
VB
35390 hits
Convert
String
to
Double
in
VB
32823 hits
Convert
String
to
Long
in
VB
28572 hits
Convert
Byte()
to
Integer
in
VB
26918 hits
Convert
Byte
to
Integer
in
VB
23657 hits
Convert
Boolean
to
Integer
in
VB
23392 hits
Convert
Single
to
String
in
VB
22498 hits
Convert
Double
to
Long
in
VB
22492 hits
Convert
Byte
to
String
in
VB
20591 hits
Convert
Byte()
to
Long
in
VB
20510 hits
Convert
Integer
to
Byte()
in
VB
19528 hits
Convert
Long
to
Integer
in
VB
19470 hits
Convert
Long
to
Byte()
in
VB
19262 hits
Convert
Double
to
Single
in
VB
15610 hits
Convert
Single
to
Integer
in
VB
14742 hits