This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Return an all-uppercase (capitalized) version of a string.
Syntax
s = UCase$(string_expression)
Returns
String
Parameters
Name |
Type |
Optional |
Meaning |
string_expression |
String |
No |
The string to convert into upper case letters |
Remarks
Restrictions
See also
String Handling, LCASE$, MCASE$,
Examples
Thanks to Abraxas for the following script example
' Usage of the LCASE$ Keyword example
' Usage of the MCASE$ Keyword example
' Usage of the UCASE$ Keyword example
Dim MyOLDString As String VALUE "HELLO WORLD"
Dim MyLCASEString As String
Dim MyMCASEString As String
Dim MyUCASEString As String
Dim sMsg As String
MyLCASEString = LCASE$(MyOLDString)
MyMCASEString = MCASE$(MyOLDString)
MyUCASEString = UCASE$(MyOLDString)
sMsg += "Normal " & MyOLDString & $CRLF & $CRLF
sMsg += "LCASE$ " & MyLCASEString & $CRLF & $CRLF
sMsg += "MCASE$ " & MyMCASEString & $CRLF & $CRLF
sMsg += "UCASE$ " & MyUCASEString & $CRLF & $CRLF
MSGBOX 0, sMsg