Value.FromText

Value.FromText

Creates a strongly-typed value from a textual representation.

function (optional text as nullable any, optional culture as nullable any) as nullable any

Description

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.

Category

Text.Conversions from and to text