Teilen über


Expression.Constant

Syntax

Expression.Constant(value as any) as text

About

Gibt die M-Quellcodedarstellung eines konstanten Werts zurück.

Beispiel 1

Ruft die M-Quellcodedarstellung eines Zahlenwerts ab.

Verwendung

Expression.Constant(123)

Output

"123"

Beispiel 2

Ruft die M-Quellcodedarstellung eines Datumswerts ab.

Verwendung

Expression.Constant(#date(2035, 01, 02))

Output

"#date(2035, 1, 2)"

Beispiel 3

Ruft die M-Quellcodedarstellung eines Textwerts ab.

Verwendung

Expression.Constant("abc")

Output

"""abc"""