Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spell check
Message
 
 
To
10/02/2008 13:16:52
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01291204
Message ID:
01291214
Views:
18
Check SpellBound.vcx File #9683

>How can I run 'word spell check' on text boxes?
>I found something but it's not nature and has problems.
>here is this
oWord=CREATEOBJECT("Word.Application")
>oWord.WindowState=2
>_CLIPTEXT=thisform.edit1.value
>oWord.Documents.Add.Content.Paste
>oWord.ActiveDocument.CheckSpelling()
>oWord.Visible=.F.
>=oWord.ActiveDocument.Select
>cText=oWord.Selection.Text
>cText=LEFT(cText,LEN(cText)-1)
>REPLACE thisform.edit1.value WITH cText
>_CLIPTEXT=""
>oWord.Documents.Close(0)
>oWord.Quit(0)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform