CountCharsOf |
Type | operator |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | the number of chars in <Target>
|
Associations | com.livecode.char |
Summary | Counts the number of chars in Target.
|
Parameters | Name | Type | Description |
---|
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
|
Values | Name | Type | Description |
---|
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.
|
Tags | strings |