item

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
item
Summary

Designates a comma-delimited string as part of a chunk expression.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
get item 2 of field "Name"
put it into item 3 of line tThisRecord of myNamesDB
RelatedKeyword: characters, string, item, character, lines, element, word, words
Constant: tab
Property: itemDelimiter
Function: itemOffset
Glossary: keyword, property, delimit, container, chunk expression, chunk
Description

Use the item keyword to refer to a specific chunk of data in a container.

By default, an item is delimited by commas (,). However, you can set the itemDelimiter property to any character in order to directly address chunks delimited by that character. For example, you can set the itemDelimiter to tab in order to handle a database file whose fields are tab-delimited.

An item is a string of characters delimited by a single comma (or a single one of the itemDelimiter character). A single item can contain multiple characters, multiple words, and multiple lines.

Note: In LiveCode, if the last character of a string is the itemDelimiter, then this character is ignored by the item keyword. For example the last item of the string "1,2,3," is "3" (assuming comma is the itemDelimiter)

Tagstext processing