Table of contents
TOC
Collapse the table of content
Expand the table of content

Text.Length

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

About

Returns the number of characters in a text value.

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

Arguments

ArgumentDescription
textThe 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")    
]  
© 2018 Microsoft