Click or drag to resize

UpperA Function

Convert the lowercase and mixed case characters in a string to uppercase, changing the contents of the argument as well as the return value.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.4a
Syntax
 FUNCTION UpperA(
	cString REF STRING
) AS STRING
View Source

Parameters

cString
Type: String
The string to convert to uppercase.

Return Value

Type: String
<cString> with all alphabetical characters converted to uppercase.
All other characters remain the same as in the original string.
Remarks
UpperA() is similar to Upper() except that it changes the contents of the argument as well as the return value.  See Upper() for details.
Tip Tip
You may change more than one variable at the same time (see example below).
Examples
These examples illustrate the effects of UpperA().  Compare them to the results of the Upper() example:
X#
1LOCAL cName AS STRING
2cName := "noLi1"
3? UpperA(cName)                // NOLI1
4? cName                            // NOLI1
This example shows how you may change more than one variable at the same time:
X#
1a:= "i Change"
2b:= a
3UpperA(b)
4? b // "I Change"
5? a // "I Change"
See Also