batchreplace(
TEXT
,
FINDREPLACEPAIRS
,
MAINSEPARATOR
,
SUBSEPARATOR
)

The batchreplace( function performs multiple find/replace operations on a piece of text.


Parameters

This function has four parameters:

text – text to be modified.

findreplacepairs – two dimensional text array specifying the find and replace operations to be done. Each array element is itself a two element array … element 1 is the text to be found, element 2 is the replacement text.

mainseparator – the separator between each replacement pair.

subseparator – the separator between each find/replace element.


Description

This function performs multiple find/replace operations on a piece of text. This example converts a state abbreviation into a full state name.

batchreplace("CA","AZ=Arizona|CA=California|OR=Oregon","|","=") ☞ California

This function is similar to replacemultiple( but is easier to set up and modify because the find & replace strings are grouped together, instead of being split into separate arrays.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0