I am making a desktop app which can count words, sentences, paragraph, special characters and characters.
How can I make such a app?
I don’t know how to count words, characters, etc.
I am making a desktop app which can count words, sentences, paragraph, special characters and characters.
How can I make such a app?
I don’t know how to count words, characters, etc.
As a gross simplification:
Return tempString.CountFields(" ") 'Count the words
Return tempString.Length 'Count the letters
see also
https://documentation.xojo.com/api/text/regular_expressions/index.html#regular-expressions
and examples
\Xojo2021r31\Example Projects\Worker\WordCounter
Return tempString.ReplaceLineEndings(EndOfLine).CountFields(EndOfLine) 'Sort of counts the paragraphs