Maptitude GISDK Help

SubstituteChars()

Summary

Returns the input string with all occurrences of the characters listed in the find string replaced with the characters in the replacement string.

 

Changes

Added to Version 2018.

 

Syntax

new_string = SubstituteChars(string input_str, string find_str, string repl_str)

 

Argument Contents
input_str The input string
find_str The characters to be located and replaced
repl_str The new characters that are to replace the find_str characters

 

Returns

A string where the characters in find_str are replaced with the characters in repl_str.

 

Notes

Examples

 

s = SubstituteChars("cavolate","aeou","i") // Returns "civiliti"

s = SubstituteChars("cavolate","aeou","") // Returns "cvlt"

s = Upper(SubstituteChars("QUéBEC YUCATáN MéXICO","éá","ea")) // Returns "QUEBEC YUCATAN MEXICO"

 

 

See Also

Function Summary
Position() Returns the position of a substring within a string
PositionFrom() Search for the first occurrence of a substring within a string, starting the search at a designated position
PositionTo() Search for the last occurrence of a substring within a string, ending the search at a designated position
Substitute() Replaces a matching substring with a new string
Substring() Extracts a portion of a string

 

 

©2025 Caliper Corporation www.caliper.com