From Xojo Documentation

Shared Method

Double.Parse(theText As Text, Optional locale As Xojo.Core.Locale) As Double

Converts theText to a Double value.


If no locale is specified, then Locale.Raw is used.

Numbers are converted only if they are found at the beginning of the text. Any numbers that follow a non-numeric value are ignored. Empty text returns 0.

Sample Code

Dim d As Double
d = Double.Parse("123ABC")
// d = 123