parseItemsAsStringList

Typehandler
Dictionarylibrary.scriptitems
LibraryLiveCode Script item list handling
Syntax
parseItemsAsStringList(<pStringValue>,<pListLength>,<pDefaultValue>)
Associationscom.livecode.library.scriptitems
Summary

Parse a comma-delimited "item" string as a list of strings

Parameters
NameTypeDescription
pStringValue

A string containing comma-delimited "items"

pListLength

The number of elements the parsed list should contain

pDefaultValue

Value to be used for extra elements

Values
NameTypeDescription
return

The parsed items as a list of strings

RelatedHandler: parseItemsAsNumberList, formatStringListAsItems
Description

Helper function for converting a LiveCode Script "item" list into list of strings, obeying the LiveCode Script rules for items.

If pListLength is provided, then the returned list will always contain that number of elements: extra elements will be discarded, and missing elements will be set to pDefaultValue.