Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  

Text.CountWords

Counts words.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Text 8.1 Yes Yes Yes Yes Yes

MBS( "Text.CountWords"; Text )

Parameters

Parameter Description Example value
Text The text to count words. "Hello World Hello"

Result

Returns list or error.

Description

Counts words.
We split the text into words and than count for each how often it happens.
The result contains count, tab and the word and is not sorted.

Examples

Count words:

MBS( "Text.CountWords"; "Hello World Hello" )

Example result:
  1 World
2 Hello

Works with umlauts:

MBS( "Text.CountWords"; "ä ö ü ä ö ö ö ö ß ß" )

Example result:
  2 ß
2 ä
5 ö
1 ü

See also


Text.ConvertUnicodeToCharacterDecomposition   -   Text.DecodeBytesFromBase64

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins