Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spellcheck RTF
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00726083
Message ID:
00726680
Views:
18
I did manage to get it working the way I wanted...the hardest part was if they had entered something like "alot" and spellchecker changed it to "a lot" - in other words it was a bit hard to deal with in the case of more or less number of words being returned as when you started, or had different RTF code inside one word - like having 2 different fonts in the same word.
Someone paid me to do it while on a project so the code isnt really mine to share. I tried to get them to let me put this piece in the public domain when I first did it but the answer was "no".
The logic for it isnt impossible to figure out though... You just need to be able to strip out the RTF into an array somehow and then put it back in after the spellchecking.

>Thanks for the information. Does your function work well? Are you interested/able to share?
>
>Thanks,
>
>TFISHER
>
>
>>I went though this same problem about a year and a half ago. Basicly you're stuck with one of two solutions. One is too write something that merges the plain text version of the memo field back in with the rtf code, or to use a 3rd party spell checker. I finally wrote a function that did the merging, but it was a real pain in the neck.
>>
>>>You are absolutely correct. I am able to use the 'text' property to spell check the field. This does, however, bring up another problem. If a spelling error has been made, when I save the corrected 'text' property, all formatting is lost and everything reverts to Ariel Bold.
>>>
>>>Any idea how to keep the previous formatting?
>>>
>>>Thanks,
>>>
>>>TFISHER
>>>
>>>>Hi,
>>>>
>>>> The Microsoft Rich Textbox Control has a 'text' property. This is the plain text version of all the jumble that is stored in your memo field. If you set the control source of your chell specker to oYourRTF.text, it might do the job.
>>>>
>>>>Alan
ICQ 10556 (ya), 254117
Previous
Reply
Map
View

Click here to load this message in the networking platform