CountCodeunitsOf

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

Counts the number of codeunits 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 codeunits 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 codeunits in Target.

Description

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

Tagsstrings