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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fox spellchecker 4

Status
Not open for further replies.

Steve-vfp9user

Programmer
Feb 5, 2013
337
GB
Hello

I am going to purchase Fox Spellchecker but would like to know if any experts have had any problems, obstacles etc with installing or using this bolt on?

I don't have an issue with buying the product ($249.00 or about £179.00) and I have enquired about a demo version but unfortunately there isn't one.

Mike Lewis' page offers advice here: but having looked at the website Mike said he used, I cannot see any links for the software:
I've already done research on ways of adding spell checking to fox apps including using Microsfot Word but the Fox Spellchecker appears to be the best option so far unless you guys think or suggest otherwise.

Thank you

Steve
 
I recently suggested using Craig Boyds spellchecker, more precise the word dictionary, for OCR text indexing (and checking OCR recognized text for mistakes).

So the link should be here in some recent thread, but I'll google it again:
See how that works for you.

Bye, Olaf.
 
On the other hand Mike Lewis mentions Hallogram, and they still are there and offer the Fox spellchecker. If it has advanced features it may well be worth it.

Bye, Olaf.

 
Mike Lewis' page offers advice here:

Well, keep in mind that that article is 14 years old now. I can't guarantee that it's still up to date.

That said, I've just had a quick look at the Hallogram site. The product looks pretty much the same as I remember it.

Regarding Strategic Edge, that looks like a different company now. I'll remove that link from the article.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 

Hello Mike, thank you for your post.

I have had a chance to look at the download Olaf suggested and have to say it is very impressive.

Once I have a chance to try and adapt this with one of my own tables and memo fields, I'll post back.

Thank you

Steve
 

Just a quick Q on TEXT ENDTEXT. The help file suggest encasing the field name like this <<myfield>>

I added the table (MYTABLE) to the forms data environment but when you run it, in the field it shows <<myfield>> and not the data contained in that field in the table.

Is there a different way for doing this on forms?

Thank you

Steve
 
Hi,
You have to set TEXTMERGE ON - one or the other way

Code:
* Old way
SET TEXTMERGE TO Text.TXT 
SET TEXTMERGE ON NOSHOW
TEXT
This text ends up in the output file.
Any variables or functions enclosed in the delimiters will be
evaluated. For example, today is <<DATE()>>.
ENDTEXT
SET TEXTMERGE OFF
SET TEXTMERGE TO
 
* New way
LOCAL cOutput
TEXT TO cOutput NOSHOW TEXTMERGE
This text ends up in the cOutput variable.
Any variables or functions enclosed in the delimiters will be
evaluated. For example, today is <<DATE()>>.
ENDTEXT

From the Help file
Visual FoxPro evaluates expressions, functions, memory variables, and array elements specified with TextLines only if you set SET TEXTMERGE to ON and enclose them with the delimiters specified by SET TEXTMERGE DELIMITERS. If SET TEXTMERGE is OFF, Visual FoxPro outputs expressions, functions, memory variables, and array elements as string literals along with their delimiters.

hth

MarK
 

Hi Mark

Your example works but I'm still not sure how to get my field from the table to show instead. I did amend what you posted slightly to include <<mytable.myfield>> or just <<myfield>> and now I'm getting a stack overflow error.

My plan is to open the spell checking form with a memo field from a table, spell check it and close the form. Everything is ok for the exception of being able to spell check my own field.

Thank you

Steve
 
A stack overflow doesn't have to do with textmerge, mainly it occurs if using recursion, a function calls itself more than 127 times.

Simple test drive of the textmerge feature has already been posted, but simply execute that:
Code:
TEXT TO lcVar NOSHOW TEXTMERG
<<DATE()>>
<<_screen.caption>>
ENDTEXT
? lcVar

Have you (or some library you use) changed text merge delimiters, perhaps?
? Set("Textmerge",1)
This should show you <<>>, unless delimiters are changed by SET TEXTMERGE DELIMITERS

Bye, Olaf.
 
I'm still not sure how to get my field from the table to show instead.

Keep in mind that just adding the table to the data environment is not the whole story. Within the TEXT/ENDTEXT structure, you either have to make sure the relevant work area is selected, or (preferably) precede the field name with the alias and a dot:

SET TEXTMERGE ON
TEXT TO lcText NOSHOW
This is the text. And this is the contents of <<MyTable.MyField>>.
More text here.
ENDTEXT


Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Olaf, in short, I haven't used or changed anything significantly, just downloaded the zip file and tried to add in code as above in the initial procedure on the form.

Mike, the first time I run the form with your suggested code, I get "Insufficient stack space"

I will keep trying



Thank you

Steve
 
Why are you using TEXT...ENDTEXT at all if all you want is MyTable.Field?

Are you talking about example1.scx from Craigs spellchecker download?
Code:
TEXT TO This.edit1.Value NOSHOW
Hellow ther. This iz the neu spelling cheker ...
ENDTEXT

The main purpose of this is to have a lnegthy text into source code. What is set is thisform.edit1.value, you can simply do that with
Code:
Thisform.edit1.Value = MyTable.MyField
Ensure the value is not NULLL, you are at a valid record and not EOF.
But forget about text endtext in this case. Textmerge is usseful for putting several values into a text template.

Bye, Olaf.
 
the first time I run the form with your suggested code, I get "Insufficient stack space"

Steve, I don't know why you got that, but Olaf's suggestion should solve it. As he said, you don't in fact need a TEXT/ENDTEXT (which I hadn't appreciated).

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Thanks for the posts guys. I'll pick this up tomorrow and reply with my findings.

Thank you

Steve
 
Olaf

Why are you using TEXT...ENDTEXT at all if all you want is MyTable.Field?
Are you talking about example1.scx from Craigs spellchecker download?

Yes. This was the actual coding that came with Craigs example so I was just trying to adapt it. The reason for the post was to ask for advice on inclusion of the field from my table.

Mike Lewis: Your post has been noted, thank you

I amended the initial procedure as suggested by Olaf but now I am seeing an error message "Class name is invalid". I have carried out a search on Tek-Tips for that error and note a few replies already made by Olaf.

I will keep digging but we are now in possession of Fox Spellchecker from Hallogram so let's see how we go with that!

Thank you

Steve
 
Did you move the SCX relative to the other files of the extracted zip download? The SCX is based on the spellcheker form class and does need the VCX/VCT files realtive to itself, otherwise you get errors starting the form, yes.

Simply reunzip the download and keep it as it is. Open the example1.scx and just change the init code, put your table into the dat environment and it'll work. But it's not a standalone file you could copy over to your project. It's based on the classes in the project. So read a bit about classes and libraries in the VFP help and get to know how to use them, then you'll see.

Bye, Olaf.
 
I still use the FoxSpell, no one ever complains about no spellcheck. I don't think many people actually
use it within the applications, but they used to complain it wasn't there... so I put it in everything

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are not good for you.
 

Thanks Olaf

Griff, the project I am working on specifically requires spell check, so yes, I am going to include it as the form contains much information that does require checking!

Appreciate your posts guys

Thank you

Steve
 
Hey GriffMG,

Just noticed your signature line - good one! Mind if i borrow it? I spent some time on an electronics diagnostic unit circa early 80's. Always flipping back and forth between binary, Hex and base 10 on display panels. My kid's (ages like 4 & 6 then) used to think I way crazy trying to explain that 1011 = B = 11. Even my wife chimed in on their side that the statement 11 = 1011 was ridiculous. I've grown up (a little) now and spend my time while I'm driving around seeing Op Codes in license plates. I want to get CHR-027 on my car. Thanks for the flashback and a good laugh to start the day.

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top