Replace

<< Click to Display Table of Contents >>

Navigation:  Support for TN3270 Plus™ macros >

Replace

Description

Returns a string in which a specified substring has been replaced with another substring.

Syntax

$return = replace(string,oldString,newString)1

or

replace $variable,oldString,newString2

Parameters1

Part

Type

Description

$return

String

Required. The string with the specified characters replaced.

string

String

Required. Variable containing text to be replaced..

oldString

String

Required. The string to replaced.

newString

String

Required. The replacement string.

Parameters2

Part

Type

Description

$variable

String

Required. Variable containing text to be replaced.

oldString

String

Required. The string to replaced.

newString

String

Required. The replacement string.