UCase
Returns an upper case copy of a string
Declare Function UCase ( ByRef str As Const String, ByVal mode As Long = 0 ) As String
Declare Function UCase ( ByRef str As Const WString, ByVal mode As Long = 0 ) As WString
result = UCase[$]( str [ , mode ] )
str
Uppercase copy of str.
Returns a copy of str with all of the letters converted to upper case.
If str is empty, the null string ("") is returned.
will produce the output:
Syntax
Declare Function UCase ( ByRef str As Const String, ByVal mode As Long = 0 ) As String
Declare Function UCase ( ByRef str As Const WString, ByVal mode As Long = 0 ) As WString
Usage
result = UCase[$]( str [ , mode ] )
Parameters
str
String to convert to uppercase.
modeThe conversion mode: 0 = current locale, 1 = ASCII only
Return Value
Uppercase copy of str.
Description
Returns a copy of str with all of the letters converted to upper case.
If str is empty, the null string ("") is returned.
Example
Print UCase("AbCdEfG")
will produce the output:
ABCDEFG
Platform Differences
- The wide-character string version of UCase is not supported for DOS target.
Dialect Differences
- The string type suffix "$" is obligatory in the -lang qb dialect.
- The string type suffix "$" is optional in the -lang fblite and -lang fb dialects.
Differences from QB
- QB does not support Unicode.
See also