Lower/LCase and Upper/UCase Functions

Purpose

Converts a string to either upper or lower case

Syntax

$ = Lower[$](a$)

$ = LCase[$](a$)

$ = Upper[$](a$)

$ = UCase[$](a$)

a$:sexp

Description

Lower and Upper convert a string, including all accented letters, to lower and upper cases respectively.

LCase and UCase do the same but only for unaccented letters.

Non-letter characters are left unaffected by all of the above functions.

Example

Local a$ = "aàáâãäåæbcçdeèéêëfghiìíîïjklmnðñoòóôõöpqrstuvwxyz1234567890"

Debug.Show

Trace a$

Trace Upper(a$)

Trace UCase(a$)

Debug.Print

a$ = Upper(a$)

Trace a$

Trace Lower(a$)

Trace LCase(a$)

See Also

Xlate$()

{Created by Sjouke Hamstra; Last updated: 11/10/2014 by James Gaite}