CountCharsOf
Type
operator
Summary
Counts the number of chars in Target.
Syntax
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.
Parameters
Name | Type | Description |
---|---|---|
Target | An expression which evaluates to a string. |
Examples
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"