<-- Previous || Up || Next -->

Count Words Function
String Words Class

Public Function CountWords( _
    ByVal vValue As Variant _
    ) As Variant

Count the alphanumeric words within a string.
Function considers each sequence of one or more alphanumeric characters to be a word.

Examples:
    CountWords("This is a test.") = 4
    CountWords("") = 0
See also:
    CountCharacters Function
    CountLines Function
vValue: String containing alphanumeric words that should be counted. Function returns Null if vValue is Null or cannot be fixed up to a String.

Note: Function uses the built-in character classification routines to determine which characters are alphanumeric.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.