ProperA Function | |
Capitalize a proper name correctly, changing the contents of the argument as well as the return value.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax FUNCTION ProperA(
cName REF STRING
) AS STRING
public static string ProperA(
ref string cName
)
Request Example
View SourceParameters
- cName
- Type: String
A proper name.
Return Value
Type:
StringcName with uppercase letters at the beginning of each word.
Remarks
ProperA() is the same as Proper(), except that ProperA() changes the original string as well.
Tip |
---|
You may change more than one variable at the same time (see example below).
|
Examples
This example uses ProperA() to capitalize a person's name. Compare the results to the results in the Proper example():
1LOCAL cName AS STRING
2cName : = "terry a. brown"
3? ProperA(cName)
4? cName
This example shows how more than one variable may be changed at the same time:
1a:= "i change"
2b:= a
3ProperA(b)
4? b
5? a
See Also