I have a FoxPro/VFP application with text entries in memo fields. How
can I set up spell checking in the memo fields accessible when viewing
the field? This app works in 2.6 and VFP, but if this can only be done
for VFP, that's fine. Thanks.

Dan

RE: How to set up a spell checker for FoxPro memo fields by MichelRoy

MichelRoy
Tue Dec 06 11:29:06 CST 2005

you may want to read this article by Rick Strahl
http://west-wind.com/weblog/posts/1382.aspx

"Dan_Musicant" wrote:

> I have a FoxPro/VFP application with text entries in memo fields. How
> can I set up spell checking in the memo fields accessible when viewing
> the field? This app works in 2.6 and VFP, but if this can only be done
> for VFP, that's fine. Thanks.
>
> Dan
>

Re: How to set up a spell checker for FoxPro memo fields by Josh

Josh
Tue Dec 06 12:57:05 CST 2005

I have an app that spell checks blocks of text (ie: memo fields)

I could see if I can compile it in fpw. Contact me privately if you want more
information -- sadly; I could not do this for free...

On Tue, 06 Dec 2005 16:43:56 GMT, Dan_Musicant <man@privacy.net> wrote:

>I have a FoxPro/VFP application with text entries in memo fields. How
>can I set up spell checking in the memo fields accessible when viewing
>the field? This app works in 2.6 and VFP, but if this can only be done
>for VFP, that's fine. Thanks.
>
>Dan


--- AntiSpam/harvest ---
Remove X's to send email to me.

Re: How to set up a spell checker for FoxPro memo fields by Dan_Musicant

Dan_Musicant
Tue Dec 06 13:37:30 CST 2005

On Tue, 6 Dec 2005 09:29:06 -0800, "Michel Roy"
<MichelRoy@discussions.microsoft.com> wrote:

:you may want to read this article by Rick Strahl
:http://west-wind.com/weblog/posts/1382.aspx

Thanks. I'm trying an experiment using Rick's code but am drawing a
blank on ISCOMOBJECT(). I'm using VFP 7.0, but my VFP 9.0's help doesn't
reference it either. A Google search seems to indicate that it's
involved with MSDN somehow, but I got an error in pursuing it.

Here's the part of the code that's breaking:

IF !ISCOMOBJECT("Word.Application")

RETURN lcText

ENDIF

Does this mean I have to instantiate word in my VFP application before
using this or is it enough for Word to be registered on my machine. I do
have Word 2000 installed. Thanks again.

Dan
:
:"Dan_Musicant" wrote:
:
:> I have a FoxPro/VFP application with text entries in memo fields. How
:> can I set up spell checking in the memo fields accessible when viewing
:> the field? This app works in 2.6 and VFP, but if this can only be done
:> for VFP, that's fine. Thanks.
:>
:> Dan
:>


Re: How to set up a spell checker for FoxPro memo fields by MichelRoy

MichelRoy
Tue Dec 06 17:15:02 CST 2005

it could be a procedure that he wrote to test if Word is installed on the
system
ignore that line of code or add

procedure isComObject(lcString)
local loException AS Exception, lExist AS Boolean
lExist = .F.
TRY
loObj = CREATEOBJECT(lcString)
lExist = VARTYPE(loObj) = "O"
CATCH TO loException
ENDTRY
loObj = .Null.
RETURN lExist
ENDPROC


"Dan_Musicant" wrote:

> On Tue, 6 Dec 2005 09:29:06 -0800, "Michel Roy"
> <MichelRoy@discussions.microsoft.com> wrote:
>
> :you may want to read this article by Rick Strahl
> :http://west-wind.com/weblog/posts/1382.aspx
>
> Thanks. I'm trying an experiment using Rick's code but am drawing a
> blank on ISCOMOBJECT(). I'm using VFP 7.0, but my VFP 9.0's help doesn't
> reference it either. A Google search seems to indicate that it's
> involved with MSDN somehow, but I got an error in pursuing it.
>
> Here's the part of the code that's breaking:
>
> IF !ISCOMOBJECT("Word.Application")
>
> RETURN lcText
>
> ENDIF
>
> Does this mean I have to instantiate word in my VFP application before
> using this or is it enough for Word to be registered on my machine. I do
> have Word 2000 installed. Thanks again.
>
> Dan
> :
> :"Dan_Musicant" wrote:
> :
> :> I have a FoxPro/VFP application with text entries in memo fields. How
> :> can I set up spell checking in the memo fields accessible when viewing
> :> the field? This app works in 2.6 and VFP, but if this can only be done
> :> for VFP, that's fine. Thanks.
> :>
> :> Dan
> :>
>
>

Re: How to set up a spell checker for FoxPro memo fields by Alan

Alan
Wed Dec 07 09:55:25 CST 2005

We have impl,imented a similar solution here and their are some user issues.
It is possiable for the user to get the spellchecker window "hidden" beind
the vfp window. Their is no visual clue that this has happened and the only
way to fix it is to alt-tab to get it back.

their is a VFP spell checker available from the gotdotnet code callery from
the sendaX project
http://www.gotdotnet.com/codegallery/codegallery.aspx?id=0826d7a6-1dab-4a71-8e70-f2170c3c1661
(very bottom right of the page)

Alan
"Michel Roy" <MichelRoy@discussions.microsoft.com> wrote in message
news:4D95B67C-3005-4D59-A7B1-9C79B7DCE66B@microsoft.com...
> you may want to read this article by Rick Strahl
> http://west-wind.com/weblog/posts/1382.aspx
>
> "Dan_Musicant" wrote:
>
>> I have a FoxPro/VFP application with text entries in memo fields. How
>> can I set up spell checking in the memo fields accessible when viewing
>> the field? This app works in 2.6 and VFP, but if this can only be done
>> for VFP, that's fine. Thanks.
>>
>> Dan
>>
>




Re: How to set up a spell checker for FoxPro memo fields by Dan_Musicant

Dan_Musicant
Wed Dec 07 10:36:57 CST 2005

On Wed, 7 Dec 2005 10:55:25 -0500, "Alan Sheffield" <asheffield @ pwg .
com> wrote:

:We have impl,imented a similar solution here and their are some user issues.
:It is possiable for the user to get the spellchecker window "hidden" beind
:the vfp window. Their is no visual clue that this has happened and the only
:way to fix it is to alt-tab to get it back.
:
:their is a VFP spell checker available from the gotdotnet code callery from
:the sendaX project
:http://www.gotdotnet.com/codegallery/codegallery.aspx?id=0826d7a6-1dab-4a71-8e70-f2170c3c1661
:(very bottom right of the page)
:
:Alan

That download looks pretty sweet (and it's from Sweetpotato Software!).

I'll see about implementing it. I think I can get Rick's method of
harnessing Word's spell check to work for me but I'm going to try this
class and see how I like it. Honestly, I think it's a little odd that
Microsoft hasn't worked a spellcheck into VFP "natively."

Dan
:"Michel Roy" <MichelRoy@discussions.microsoft.com> wrote in message
:news:4D95B67C-3005-4D59-A7B1-9C79B7DCE66B@microsoft.com...
:> you may want to read this article by Rick Strahl
:> http://west-wind.com/weblog/posts/1382.aspx
:>
:> "Dan_Musicant" wrote:
:>
:>> I have a FoxPro/VFP application with text entries in memo fields. How
:>> can I set up spell checking in the memo fields accessible when viewing
:>> the field? This app works in 2.6 and VFP, but if this can only be done
:>> for VFP, that's fine. Thanks.
:>>
:>> Dan
:>>
:>
:
:


Re: How to set up a spell checker for FoxPro memo fields by Germán

Germán
Wed Dec 07 20:51:05 CST 2005

http://www.sweetpotatosoftware.com/SPSBlog/PermaLink,guid,8800bdb9-a9c2-484f-942f-6a08947d903a.aspx

Regards

Germán Giraldo


"Dan_Musicant" <man@privacy.net> escribió en el mensaje
news:3tfbp1pch7ki5gmdp6t521krpkmrb9hond@4ax.com...
> I have a FoxPro/VFP application with text entries in memo fields. How
> can I set up spell checking in the memo fields accessible when viewing
> the field? This app works in 2.6 and VFP, but if this can only be done
> for VFP, that's fine. Thanks.
>
> Dan



Re: How to set up a spell checker for FoxPro memo fields by MichelRoy

MichelRoy
Wed Dec 07 22:03:01 CST 2005

there are ways to pick up a window and make sure it is brought forward with a
few API calls, I think most companies already have Word 2000 or higher they
may even have multiple language directories installed. and since it's a snap
to use and it has an interface everyone is familiar with, i don't think you
could find an easier/cheaper method.

"Alan Sheffield" wrote:

> We have impl,imented a similar solution here and their are some user issues.
> It is possiable for the user to get the spellchecker window "hidden" beind
> the vfp window. Their is no visual clue that this has happened and the only
> way to fix it is to alt-tab to get it back.
>
> their is a VFP spell checker available from the gotdotnet code callery from
> the sendaX project
> http://www.gotdotnet.com/codegallery/codegallery.aspx?id=0826d7a6-1dab-4a71-8e70-f2170c3c1661
> (very bottom right of the page)
>
> Alan
> "Michel Roy" <MichelRoy@discussions.microsoft.com> wrote in message
> news:4D95B67C-3005-4D59-A7B1-9C79B7DCE66B@microsoft.com...
> > you may want to read this article by Rick Strahl
> > http://west-wind.com/weblog/posts/1382.aspx
> >
> > "Dan_Musicant" wrote:
> >
> >> I have a FoxPro/VFP application with text entries in memo fields. How
> >> can I set up spell checking in the memo fields accessible when viewing
> >> the field? This app works in 2.6 and VFP, but if this can only be done
> >> for VFP, that's fine. Thanks.
> >>
> >> Dan
> >>
> >
>
>
>
>

Re: How to set up a spell checker for FoxPro memo fields by Alan

Alan
Thu Dec 08 11:50:13 CST 2005

The only way to do this is via a vfp timer and check if the speller window
has dropped behind VFP and pop it back out front.

So far sounds ok.

BUT, their are issues. Its been a few months so I do not recall the fine
details. Depending on what the user does until VFP pops the speller back to
the front you can actually get the "switch to" dialog" if the clicks the
correct thing when this comes up, full blown word becomes visiable and
active. When the spell check is finished, your left with word running. If
you do not close word VFP remains hung. If you close word the object will be
gone when VFP gets control. The options at this point are to detect word
being visible in a timer(were in 8 don't know if bindevent in 9 would help)
and hide it before the user closes it or just relaunch the spell
checker(which you have to do if the user closes word before the timer
fires).

While it works its really not the best solution.

As soon as time allows I will change the core objects to use the checker
from SPS.

Alan
"Michel Roy" <MichelRoy@discussions.microsoft.com> wrote in message
news:73E64820-9D2F-49A0-BDF4-92EDD27B33CD@microsoft.com...
> there are ways to pick up a window and make sure it is brought forward
> with a
> few API calls, I think most companies already have Word 2000 or higher
> they
> may even have multiple language directories installed. and since it's a
> snap
> to use and it has an interface everyone is familiar with, i don't think
> you
> could find an easier/cheaper method.
>
> "Alan Sheffield" wrote:
>
>> We have impl,imented a similar solution here and their are some user
>> issues.
>> It is possiable for the user to get the spellchecker window "hidden"
>> beind
>> the vfp window. Their is no visual clue that this has happened and the
>> only
>> way to fix it is to alt-tab to get it back.
>>
>> their is a VFP spell checker available from the gotdotnet code callery
>> from
>> the sendaX project
>> http://www.gotdotnet.com/codegallery/codegallery.aspx?id=0826d7a6-1dab-4a71-8e70-f2170c3c1661
>> (very bottom right of the page)
>>
>> Alan
>> "Michel Roy" <MichelRoy@discussions.microsoft.com> wrote in message
>> news:4D95B67C-3005-4D59-A7B1-9C79B7DCE66B@microsoft.com...
>> > you may want to read this article by Rick Strahl
>> > http://west-wind.com/weblog/posts/1382.aspx
>> >
>> > "Dan_Musicant" wrote:
>> >
>> >> I have a FoxPro/VFP application with text entries in memo fields. How
>> >> can I set up spell checking in the memo fields accessible when viewing
>> >> the field? This app works in 2.6 and VFP, but if this can only be done
>> >> for VFP, that's fine. Thanks.
>> >>
>> >> Dan
>> >>
>> >
>>
>>
>>
>>
>