Text.Replace(Text, Text) Method

Version: Available or changed with runtime version 1.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 :=   Text.Replace(OldValue: Text, NewValue: Text)

Note

This method can be invoked without specifying the data type name.

Parameters

Text
 Type: Text
An instance of the Text 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.

Text Data Type
Get Started with AL
Developing Extensions