Skip to main content

UCS( ) Return Uppercase String

Format

UCS(string$[,ERR=stmtref])

Where:

stmtref

Program line number or statement label to which to transfer control.

string$

String expression whose uppercase ASCII counterpart is to be returned.

Returns

Uppercase string equivalent of lowercase string.

Description

The UCS( ) function replaces all lowercase ASCII characters in a given string with their corresponding uppercase values.

See Also

LCS( ) Return Lowercase String

Example

input "Enter name: ",NAME$
NAME$(2)=lcs(NAME$(2))
NAME$(1,1)=ucs(NAME$(1,1))
print "Name is: ",NAME$

->run
Enter name: rOBERT Name is: Robert