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
26243 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
84978 hits
Convert
Long
to
String
in
VB
75659 hits
Convert
Integer
to
String
in
VB
52043 hits
Convert
Boolean
to
String
in
VB
48405 hits
Convert
Double
to
Integer
in
VB
42629 hits
Convert
Integer
to
Double
in
VB
34784 hits
Convert
String
to
Double
in
VB
32140 hits
Convert
String
to
Long
in
VB
27956 hits
Convert
Byte()
to
Integer
in
VB
26243 hits
Convert
Byte
to
Integer
in
VB
23017 hits
Convert
Boolean
to
Integer
in
VB
22893 hits
Convert
Single
to
String
in
VB
21921 hits
Convert
Double
to
Long
in
VB
21859 hits
Convert
Byte
to
String
in
VB
20036 hits
Convert
Byte()
to
Long
in
VB
19947 hits
Convert
Integer
to
Byte()
in
VB
18976 hits
Convert
Long
to
Integer
in
VB
18863 hits
Convert
Long
to
Byte()
in
VB
18772 hits
Convert
Double
to
Single
in
VB
15055 hits
Convert
Single
to
Integer
in
VB
14224 hits