Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Text.CapitalCase

Converts text to capital case letters.

Component Version macOS Windows Linux Server iOS SDK
Text 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Text.CapitalCase"; Text )   More

Parameters

Parameter Description Example
Text The text to process. "hello WORLD"

Result

Returns text or error.

Description

Converts text to capital case letters.
First letter of a word is made upper case, all others to lower case.
Often people enter in forms all kinds of upper/lower case letters and you may want to normalize using this function.

See also Text.UpperCase, Text.LowerCase and Text.RemoveAccents.

This function works on pure text, so any text style is lost.

Examples

Fix HAMBURG:

MBS( "Text.CapitalCase"; "HAMBURG" )
MBS( "Text.CapitalCase"; "HAMBurg" )

Example result: Hamburg

Fix Schleswig-Holstein:

MBS( "Text.CapitalCase"; "SCHLESWIG-HOLSTEIN" )

Example result: Schleswig-Holstein

See also

Example Databases

Blog Entries

This function checks for a license.

Created 10th March 2015, last changed 28th January 2022


Text.AppendTextFile - Text.Character

💬 Ask a question or report a problem