ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / String functions
  • CapitalizeEachWord and Unicode
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Capitalizes each word in a specified string.
New in version 2025
WEBDEV - Browser code This function is now available in browser code.
Note: This function is only available from version 2025 Update 1.
Example
MaChaîne is string = CapitalizeEachWord("première lettre de chaque mot en majuscule")
// MaChaîne contiendra "Première Lettre De Chaque Mot En Majuscule"
Syntax
<Result> = CapitalizeEachWord(<String to convert> [, <Options>])
<Result>: Character string
String with the first letter of each word in uppercase.
<String to convert>: Character string
Character string to use.
Note: All characters other than numeric or character sets are considered as word separators.
<Options>: Optional integer
Options for converting the first letter of each word to uppercase:
ccNormal
(Default value)
Accented characters retain their accent mark when capitalized.
ccIgnoreAccentThe first letter of each word is capitalized without accent marks.
Remarks

CapitalizeEachWord and Unicode

If the string passed as a parameter is an ANSI string, the result will be an ANSI string.
If the string passed in parameter is in Unicode format, the result will be in Unicode format.
Note If the result of the CapitalizeEachWord function used on an ANSI string is assigned to a Unicode string (and vice versa), ANSI/Unicode conversion will be implicitly performed.
For more details, see Unicode management.
Component: wd300vm.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help