Edit

Share via


Label.Replace(Text, Text) Method

Version: Available or changed with runtime version 15.0.

Returns a new Text in which all occurrences of a specified string in the current instance are replaced with another specified string.

Syntax

Result :=   Label.Replace(OldValue: Text, NewValue: Text)

Parameters

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

OldValue
 Type: Text
The string to be replaced.

NewValue
 Type: Text
The string to replace all occurrences of OldValue.

Return Value

Result
 Type: Text
The end result Text.

Label data type
Getting started with AL
Developing extensions