LEN

Contents


Len returns the length of a character string.

 

Syntax

   len( expr_c )

 

Parameters

Element

Description

Restrictions

expr_c

Alphanumeric expression.

None.

 

Examples

   # Displays the content of the variable TOTO
   # completed with blanks to 25 characters
    TOTO = "ABCDE"
    Infbox TOTO+space$(25 -
len (TOTO))+"toto"

    I = len ("A"+VAR1+" "+day$(date$))

 

Description and comments

len( expr_c ) returns the length of the character string expr_c.

The result is an Integer type.

 

Associated errors

Error

Description

ERMODE (10)

The argument is not a Char type.

 

Associated key words

STRING$ - SPACE$


CONTENTS


Copyright © Sage 1999 - 2007