Siebel VB Language Reference > Siebel VB Language Reference >

UCase Function


This standard VB function returns a copy of a string after converting lowercase letters to uppercase.

Syntax

UCase[$](string)

Argument
Description
string
A string or string expression

Returns

A copy of string with lowercase letters replaced by uppercase letters.

Usage

The translation is based on the country specified in the Windows Control Panel.

UCase accepts any type of argument and converts the input value to a string.

The dollar sign ($) in the function name is optional. If it is included, the return type is string. Otherwise the function typically returns a variant of vartype 8 (string). If the value of string is NULL, a variant of vartype 1 (Null) is returned.

Example

This example converts a filename entered by a user to uppercase letters.

Option Base 1
Sub Button_Click
   Dim filename as String
   filename = "c:\temp\trace.txt"
   filename = UCase(filename)
End Sub

See Also

Asc Function
LCase Function


 Siebel VB Language Reference
 Published: 18 June 2003