Proper Function | |
Change the first character of each word to uppercase
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax FUNCTION Proper(
cText AS STRING
) AS STRING
public static string Proper(
string cText
)
Request Example
View SourceParameters
- cText
- Type: String
A string of text.
Return Value
Type:
StringcText with uppercase letters at the beginning of each word.
Remarks
Proper() is nation-dependent.
Examples
This example uses Proper() to capitalize a person's name:
1LOCAL cName AS STRING
2cName := "terry a. brown"
3? Proper(cName)
4? cName
See Also