Siebel VB Language Reference > VB Language Reference >
UCase Function
This standard VB function returns a copy of a string after converting lowercase letters to uppercase. Syntax
UCase[$](string)
|
|
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
Related Topics
Asc Function LCase Function
|