From Xojo Documentation

Shared Method

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

Supported for all project types and targets.

Converts a Text value that containing a number that can be represented as a double to a Double.


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

Sample Code

Convert a Text value to a Double:

Var userValue As Text
userValue = "123.45"

Var d As Double
d = Double.FromText(userValue)