Function Reference


_StringProper

Changes a string to proper case, same as the =Proper function in Excel

#include <String.au3>
_StringProper ( $sString )

Parameters

$sString Input string

Return Value

Success: a proper string.
Failure: an empty string.

Remarks

This function will capitalize every character following a non-alpha character.

Related

StringLower(), StringUpper()

Example

#include <MsgBoxConstants.au3>
#include <String.au3>

; Will return : Somebody Lastnames
MsgBox($MB_SYSTEMMODAL, '', _StringProper("somebody lastnames"))
; Will return : Some.Body Last(Name)
MsgBox($MB_SYSTEMMODAL, '', _StringProper("SOME.BODY LAST(NAME)"))
Exit