segments

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
segments
Synonymswords
Summary

Used with the number function to count the number of segment chunks in a container.

Introduced7.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
local tText
put "one two three" into tText
put the number of segments in tText -- returns 3
RelatedKeyword: segment, words, items, characters, lines
Constant: space, tab, quote, return
Function: number
Glossary: delimit, double quote
Description

Use the segments keyword together with the number function to refer to one or more words or group of characters in a container.

A segment is delimited by one or more spaces, tabs, or returns, or enclosed by double quotes. A single segment can contain multiple characters and multiple items or words, but not multiple lines.

Note: Segments are delimited by double quotes ("), but not by curved quotes (Ò or Ó). LiveCode does not treat curved quotes as quotes.

Tagsdatabase