Text.Length

About

Returns the number of characters in a text value.

Syntax

Text.Length(text as nullable text) as nullable number  

Arguments

Argument Description
text The input text value

Example

Text.Length("abc") equals 3  

Text Comparisons

Text comparisons are performed by obtaining a comparer from Comparer.FromCulture. The comparer returns 0, a negative number, or a positive number based on the result of the comparison. The Comparer.Equals function is used to compare two text values.

Example

let  
comparer = Comparer.FromCulture("en-US", false)  
in  
[    
comparisonResult = comparer("a","b"),    
equalityResult   = Comparer.Equals(comparer,"a","b")    
]