Skip to main content

Value.FromText

Creates a strongly-typed value from a textual representation.

Syntax

Value.FromText(
text as any,
optional culture as text
) as any

Remarks

Decodes a value from a textual representation, text, and interprets it as a value with an appropriate type. Value.FromText takes a text value and returns a number, a logical value, a null value, a datetime value, a duration value, or a text value. The empty text value is interpreted as a null value. An optional culture may also be provided (for example, "en-US").

Category

Text.Conversions from and to text