### Get Numeric Value

Get a numeric character from a string and convert to a number
Dim str As String = "12345"
Dim result As Int
'This is working
'The result is 20 for character 4 at pos 3 (starting at 0) taken from string 12345
result = 5 * ("" & str.CharAt(3))
'Result is 20
Log(result)
'Solution not compiling because can not cast type char to number
'result = 5 * str.CharAt(3)

Changed: , Category: Strings, File: T6C255M1851.htm, ID: 1851