ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / String functions
  • CapitalizeEachWord and Unicode
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Capitalizes the first letter of all words in a string.
Example
MyString is string = CapitalizeEachWord("first letter of each word in uppercase")
// MyString will contain "First Letter Of Each Word In Uppercase"
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.
Remark: All characters other than numerical or alphabetical 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 as a parameter is a UNICODE string, the result will be a UNICODE string.
Remark: If the result of CapitalizeEachWord on an ANSI string is assigned to a UNICODE string (and vice versa), the conversion will be implicitly performed.
For more details, see Managing UNICODE.
Component: wd290vm.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/08/2022

Send a report | Local help