TOLOWER

Contents


tolower is used to transform all the upper case letters of a character string to lower case.

 

Syntax

   tolower( expr_c )

 

Parameters

Element

Description

Restrictions

expr_c

Alphanumeric expression.

None.

 

Examples

   # Transformation of upper case to lower case;
   # this programme displays 'cockadoodledoo!!!'
    Infbox tolower ("CockaDoodleDoo!!! ")

# Compare strings (ignoring upper/lower case differences)
    If tolower (NOM_1) = tolower (NOM_2)
       Infbox "The names are identical!"
    Endif

 

Description and comments

tolower is used to transform all the upper case letters of a character string to lower case without affecting the rest of the string.

In particular, accented letters are transformed into lower case accented letters. To compare character strings independently of the accents, the ctrans function will be used, that transforms accented characters in the argument string into non-accented characters.

The result is a Char type.

 

Comments

The format$ function, associated with a format containing type 'a' characters (lower case letters) will also perform this kind of transformation, with two differences, however:

·         the length of the string obtained is fixed, however, and depends on the length of the format (spaces are added at the start, the end or at both ends, depending on the justification option chosen),

·         if different characters of a non-accented letter are found in the string to be processed, format$ will reject the formatting overall and will return a string filled with spaces.

 

Associated errors

Error

Description

ERMODE (10)

The argument is not a Char type.

 

Associated key words

TOUPPER - FORMAT$ - CTRANS


CONTENTS


Copyright © Sage 1999 - 2007