Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLLS

Status
Not open for further replies.

grad

Programmer
Apr 13, 2000
15
US
Does anyone know how I can use the microsoft DLLs to count the number of words in a text box and also do a spell check and correction on the text. It is a multi-line text box.
 
You can use third-party tools like an ActiveX EXE to do this. If you have MS Word installed, then you are in luck. Just create an instance of Word, put the textbox contents into Word document and use SpellCheck method and other properties to get the info.

If you haven't Word installed, you can do the word counting using a piece of code, that increments a counter whenever it reaches a blank (chr(32)). Just note not to count the multiple attached blank characters.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top