Maptitude GISDK Help

ParseString()

Summary

Divides a string into pieces separated by the specified delimiters.

 

Syntax

pieces = ParseString(string s, string delimiters [, array options])

 

Argument

Contents

s

The string that is split

delimiters

A string containing all the delimiter characters

 

Option

Type

Contents

Include Empty

Boolean

If "True" each delimiter in s is treated as a separator; if "False" (default) multiple separators in a row in s are treated as one separator

 

Returns

An array of the delimited strings, or null if either s or delimiters is null.

 

Notes

Examples

subs = ParseString("Aaron LaClair Brandon", " ")

// returns {"Aaron", "LaClair", "Brandon"}

 

subs = ParseString("The quick brown fox jumped", "u b")

// returns {"The", "q", "ick", "rown", "fox", "j", "mped"}

 

subs = ParseString("b12b34bbb56","b")

// returns {"12", "34", "56"}

 

opts = {}

opts.[Include Empty] = "True"

subs = ParseString("b12b34bbb56","b", opts)

// returns {null, "12", "34", null, null, "56"}

 

See Also

Function

Summary

CompareStrings()

Compares two strings to see if they match

JoinStrings()

Returns a concatenated string separated by the delimiter

SplitString()

Divides a string into pieces based on the position of vertical bars (|) in that string

Word()

Extracts one word from a string

 

 

©2025 Caliper Corporation www.caliper.com