LEN

Platform

x64, Win32, .NET

Purpose

To get the length of a character string.

Class

Inquiry function.

Syntax

INTEGER FUNCTION LEN(STRING)
CHARACTER (LEN=*) STRING

Return value

The result is the number of characters in STRING if it is scalar or in an element of STRING if it is array of character strings.

Example

If STRING is declared as
CHARACTER (LEN=20)::STRING(10)
LEN(STRING) has the value 20.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited