Click or drag to resize

Proper Function

X#
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
Request Example View Source

Parameters

cText
Type: String
A string of text.

Return Value

Type: String
cText 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:
X#
1LOCAL cName AS STRING
2cName := "terry a. brown"
3? Proper(cName)            // Terry A. Brown
4? cName                        // terry a. brown
See Also