Edit

Share via


Duration.ToText([Boolean]) Method

Version: Available or changed with runtime version 15.0.

Converts the value to a text. Equivalent to calling Format(value, 0, 0).

Syntax

Text :=   Duration.ToText([Invariant: Boolean])

Parameters

Duration
 Type: Duration
An instance of the Duration data type.

[Optional] Invariant
 Type: Boolean
If true, invariant formatting will be performed. Equivalent to calling Format(value, 0, 9).

Return Value

Text
 Type: Text
The text representation of the value.

Duration data type
Getting started with AL
Developing extensions