Siebel VB Language Reference > Methods Reference for Siebel VB > String Methods >

Convert String to Uppercase Method


The Convert String to Uppercase method converts lowercase letters to uppercase letters. It returns a copy of this string. Note the following:

  • The conversion occurs according to the country specified in the Microsoft Windows Control Panel.
  • It accepts any type of argument and converts the input value to a string.
  • If the value that the string argument contains is NULL, then this method returns a Null variant. For more information, see Variants.
Format

UCase[$](string)

For information about the dollar sign, see Usage of the Dollar Sign.

The following table describes the arguments that you can use with this method.

Argument
Description

string

A string or string expression.

Example

The following example converts a file name that the user enters to uppercase letters:

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

Siebel VB Language Reference Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices.