Previous Topic: Trim - Remove Leading and Trailing Spaces from a StringNext Topic: Val - Convert String to Integer


UCase - Convert Lowercase Letter to Uppercase

Valid on NetWare, Symbian OS, UNIX, Windows and Windows CE

The UCase function converts lowercase letters in the s1 string to uppercase letters. No other characters are affected. There is no restriction to the ASCII code table.

This string manipulation function has the format:

UCase(s1 as String) as String
s1

Identifies the string that is to be converted.

The function returns the converted string.

Example:

This example displays a text in uppercase and lowercase.

Rem 
Dim text As String
Text="Little ABC"

Print("LCase : " + LCase(text)) 'little abc

Print("UCase : " + UCase(text)) 'LITTLE ABC