UDF > String >


_StringProper

Modifie une chaîne en mettant les initiales des noms propres en majuscules, comme la fonction d'Excel =NomPropre()

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

Paramètre

$sString La chaîne à modifier

Valeur de retour

Succès: Retourne une chaîne Nompropre.
Échec: Retourne une chaîne vide.

Remarque

Cette fonction mettra en capitale tous les caractères qui suivent un caractère non alpha.

En relation

StringLower(), StringUpper()

Exemple

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

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