syntax:functions:len
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
syntax:functions:len [2015/04/03 17:55] – elenap | syntax:functions:len [2021/08/02 02:59] – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Len(text) ===== | + | ====== Len(text) ====== |
+ | Category: | ||
- | Calculates | + | \\ |
+ | =====Description===== | ||
+ | This function returns | ||
- | ^ Example | + | \\ |
- | | len(' | + | =====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.| | ||
- | Example using a field name: | + | **Return value type:** Number |
- | ^ Example | + | \\ |
- | | len([Revenue]) | + | =====Remarks===== |
+ | The number of characters returned // | ||
+ | |||
+ | //text// is implicitly converted to text values if required | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | len(' | ||
+ | len(' | ||
+ | len(' Genetics ') = 10 //Includes leading and trailing spaces | ||
+ | len(' | ||
+ | len(1000000) = 7 //Implicit conversion of a numeric value to text | ||
+ | len('' | ||
+ | len([MyClass]) = 12 //Using a field name; [MyClass] = ' | ||
+ | |||
+ | \\ | ||
+ | ===== See also ===== | ||
+ | * [[syntax: | ||
+ | * [[syntax: | ||
- | **See also** | ||
- | * [[syntax: | ||
- | * [[syntax: |
syntax/functions/len.txt · Last modified: 2021/08/14 22:16 by craigt