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 replace all occurrences of OldValue.

NewValue
 Type: Text
The string to be replaced.

Return Value

Result
 Type: Text
The end result Text.

See Also

Text Data Type
Getting Started with AL
Developing Extensions