CountCharsOf

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
the number of chars in <Target>
Associationscom.livecode.char
Summary

Counts the number of chars in Target.

Parameters
NameTypeDescription
Target

An expression which evaluates to a string.

Example
variable tVar as Number
variable tSource as String
put "hello" into tString
put the number of chars in tString into tVar

variable tString as String
put the empty string into tString	
repeat tVar times
	put "a" after tString
end repeat

// tString contains "aaaaa"
Values
NameTypeDescription
return

The number of chars in Target.

Description

Note: The number of chars returns the number of codeunits of the target string. It does not perform any grapheme boundary analysis.

Tagsstrings