syntax:functions:len
This is an old revision of the document!
Len(text)
Category: Text function
Description
This function returns the number of characters (length) in the text value.
Use cases
This function can be used to determine if there are unexpected non-printing characters in a text string.
Arguments
Argument | Type | Description |
---|---|---|
text | Text | The text string evaluated to determine the number of characters it contains. |
Return value type: Number
Remarks
The number of characters returned includes unseen, non-printing characters (space, line feed, tab, etc.)
text is implicitly converted to text values if required
Examples
len('Telecommunications') = 18 len('Computer sciences') = 17 //Includes the space len(' Genetics ') = 10 //Includes leading and trailing spaces len('Psychology' & char(9)) = 11 //char(9) = tab, included in the length len(1000000) = 7 //Implicit conversion of a numeric value to text len('') = 0 //An empty string has a length of 0 len([MyClass]) = 12 //Using a field name; [MyClass] = 'Astrophysics'
See also
syntax/functions/len.1627887544.txt.gz · Last modified: 2021/08/02 02:59 by craigt