Developer Documentation Library > UNICOM Intelligence Function Library > Text functions > WordCount
 
WordCount
Returns the number of words in a string.
Syntax
WordCount(<value>)
Parameters
<value>
Type: Text
Text value. See also Specifying text strings as arguments.
(return)
Type: Long
Number of words in <value>.
Notes
If <value> is NULL, the return value is zero.
Example
Function call
Value
Result
WordCount(Val)
24 St John's Road, Barnes
5
WordCount()
NULL
0
The following example returns the number of words stored in the address text variable:
Address.WordCount()
See also
Text functions