Returns the number of characters in a character expression.
String.Length()
Where:
String
Is an attribute or variable based on the Character/VarChar/LongVarChar data type.
Type Returned:
Numeric
Data Types: Character, VarChar, LongVarChar
Generators: .NET, .NET Framework, Java, RPG, Cobol, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)
The Length method returns the number of characters in a character expression.
&Text = "Length method test"
&Nbr = &Text.Length() //&Nbr value is: 18
&Text = " Length method test "
&Nbr = &Text.Length() //&Nbr value is: 20
&Nbr = CustomerName.Length() //&Nbr value will be the number of characters corresponding to the CustomerName attribute content.
Len function