A Tinderbox Reference File : Attributes : Attribute Groups : Text Attributes : WordCount (or Wordcount) |
WordCount (or Wordcount) |
Attribute Data Type: | number |
Attribute Default Value: | (not set - 0) |
Atrribute Group: | Text |
Attribute Inherited from Preferences? | No |
Attribute Read-Only? | Yes |
Note: beware the lack of Caps in the second word, i.e Wordcount not WordCount as you might expect — there is no CamelCase spelling of the attribute name as with other attributes.
This returns the number of discrete words in the current note's text (q.v. TextLength for the total character count).
Either spelling - WordCount or Wordcount - may be used. For new files WordCount is a better choice for code but consider the old form if sharing files/code with users of older versions.
Up: Text Attributes | |
Previous: TextLength |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]