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.21
Syntax FUNCTION UpperA(
cString REF STRING
) AS STRING
public static string UpperA(
ref string cString
)
Request Example
View SourceParameters
- cString
- Type: String
The string to convert to uppercase.
Return Value
Type:
StringcString 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 |
---|
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:
1LOCAL cName AS STRING
2cName := "noLi1"
3? UpperA(cName)
4? cName
This example shows how you may change more than one variable at the same time:
1a:= "i Change"
2b:= a
3UpperA(b)
4? b
5? a
See Also