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
Long
in
VB
21717 hits
Dim vIn(3) As Byte
vIn(0) = &H80
vIn(1) = &H0
vIn(2) = &H0
vIn(3) = &H0
Dim vOut As Long
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
87684 hits
Convert
Long
to
String
in
VB
78161 hits
Convert
Integer
to
String
in
VB
54188 hits
Convert
Boolean
to
String
in
VB
50614 hits
Convert
Double
to
Integer
in
VB
44405 hits
Convert
Integer
to
Double
in
VB
36602 hits
Convert
String
to
Double
in
VB
34221 hits
Convert
String
to
Long
in
VB
29685 hits
Convert
Byte()
to
Integer
in
VB
28082 hits
Convert
Byte
to
Integer
in
VB
24974 hits
Convert
Boolean
to
Integer
in
VB
24375 hits
Convert
Single
to
String
in
VB
23810 hits
Convert
Double
to
Long
in
VB
23719 hits
Convert
Byte
to
String
in
VB
21739 hits
Convert
Byte()
to
Long
in
VB
21717 hits
Convert
Integer
to
Byte()
in
VB
20689 hits
Convert
Long
to
Integer
in
VB
20643 hits
Convert
Long
to
Byte()
in
VB
20309 hits
Convert
Double
to
Single
in
VB
16813 hits
Convert
Single
to
Integer
in
VB
15688 hits