textStats(field, type)
Returns LongText or Code field statistics:
- type = 0 - returns the number of words.
- type = 1 - returns the number of letters and numbers.
- type = 2 - returns the number of letters, numbers and spaces.
- type = 3 - returns the number of characters as returned by type 2, plus punctuation characters and separators.
- type = 4 - returns the number of newline characters.
NOTE: this function should be used in calculated Text fields.
To obtain the total physical size of the LongText or Code field, use the len() function.
=textStats(memo, 0) =textStats(description, 3)