Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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