WordCount()

Category: Text

Syntax: WordCount ( text )


Parameters:

textAny expression that resolves to a text string.

Data type returned: Number

Description:

Returns a count of the number of words in text.

Spaces, return characters, and most punctuation symbols are considered to be word breaks by FileMaker Pro. Multiple word breaks next to each other (for example, two spaces, a comma, and a space) are considered as a single word break.

Certain punctuation symbols are word breaks when separating alpha characters, but not when separating numeric characters. These include the colon (:), slash (/), period (.), comma (,), and dash (-). For instance, WordCount ("54.6") returns 1, but WordCount ("x.y") returns 2. The reason for this behavior is that those symbols are valid date, time, and number separators.

Examples:

Function

Results

WordCount ("The quick brown fox jumps over the lazy dog.")

Returns 9.

WordCount (FullName)

Returns 4 when FullName contains "John Q. Public, Jr."




: FileMaker Specifications

FileMaker 8 Product Line

Specifications and Storage Limits

Field Types and Import/Export Formats

: Calculation Functions

Working with Calculations Primer

Calculation Signatures

Calculation Functions

: Custom Functions

Custom Functions Primer

Useful Custom Functions

: Script Steps

Scripting Primer

Script Step Reference

: Quick Reference

FileMaker Error Codes

FileMaker Keyboard Shortcuts

FileMaker Network Ports

FileMaker Server Command Line Reference

FileMaker XML Reference

: Other Resources

Where to Go for More Information



FileMaker 8 Functions and Scripts Desk Reference
FileMaker 8 Functions and Scripts Desk Reference
ISBN: 0789735113
EAN: 2147483647
Year: 2004
Pages: 352

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net