CharUpper Function

Declare Function CharUpper Lib "user32.dll" Alias "CharUpperA" (ByVal lpsz As String) As String

Platforms

Description & Usage

CharUpper converts all of the lower-case letters in a string into upper-case. The function also sets the string passed to the function to the returned string; in reality they become the same thing.

Return Value

The function returns the string, with all lower-case letters converted to upper-case.

Visual Basic-Specific Issues

None.

Parameters

lpsz
The string to convert to upper-case.

Example

' This code is licensed according to the terms and conditions listed here.

' Convert the string "Hello, World!" into upper-case.

Dim target As String  ' target string

target = CharUpper("Hello, World!")  ' Convert to upper-case
Debug.Print target  ' Output should be "HELLO, WORLD!"

See Also

CharLower

Category

Strings

Go back to the alphabetical Function listing.
Go back to the Reference section index.


Last Modified: July 30, 1999
This page is copyright © 1999 Paul Kuliniewicz. Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/c/charupper.html