StringSplitBy

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
split <Target> by <Delimiter>
Associationscom.livecode.typeconvert
Summary

Splits the string in Target into a list of strings, using Delimiter as the delimiter.

Parameters
NameTypeDescription
Target

An expression that evaluates to a string container.

Delimiter

An expression that evaluates to a string.

Example
variable tVar as String
    put "first,second,third,fourth,fifth" into tVar
    variable tSplit as List
    split tVar by "," into tSplit
    put element 1 of tSplit into tFirstElement // tFirstElement contains "first"
Values
NameTypeDescription
The result

The list of strings.

Description

Use the split command to convert a string representation of a list into a genuine (ordered) list.

Tagstype conversion