Returns the number of characters in a character expression.
Len(Character-Expression)
Where:
Character-Expression
Must be a Character Expression.
Type Returned:
Numeric
Objects: Procedure, Transaction, Web Panel, Work Panel
Generators:
.NET,
Java, RPG, Cobol, Visual FoxPro (up to GeneXus X Evolution 3), Ruby (up to GeneXus X Evolution 3)
The Len function returns the number of characters in a character expression. Trailing blanks are ignored.
Event 'Len function test'
&CharExp = 'HELLO'
&Length = Len(&CharExp)
msg(Str(&Length,1)) //The shown result is: 5
Endevent
- &CharExp: Character(20)
- &Length: Numeric(1)
Length method