### Parse Long value

To parse a String to a Long value, make use of a Java API method (requires the JavaObject library).
Example
' Parse a string to a Long value
' See here:
' http://docs.oracle.com/javase/6/docs/api/java/lang/Long.html#parseLong(java.lang.String, int)
' Parameter Number in string format to parse
' Parameter Radix - The characters in the string must all be digits of the specified radix
' Example Dim myint As Long = ParseLong( "03E2EE47722C",16) returns 4273195151916
`Sub ParseLong(Number As String, Radix As Int) As Long
Dim jo As JavaObject
jo.InitializeStatic("java.lang.Long")
Return jo.RunMethod("parseLong", Array As Object(Number, Radix))
End Sub`

Changed: , Category: Numbers, File: T6C226M1675.htm, ID: 1675