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

Word 97 Spellcheck "Bad Parameter"

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
Hey guys,

We have a spell check component to our portal that uses the word 97 spellcheck library.

However, we're noticing that if we enter a string that is only a punctuation (i.e. period (.) comma (,) etc), that it comes back with a "Bad Parameter" error (and since the spellcheck library is COM, its not as willing to give a more detailed explanation).

If anyone is trying to do a similar thing or has any insight to this, let me know!

Thanks,

D'Arcy
 
These are most likely "ignored characters", which is why it's returning the error.

For example, in SQLServer, there's a file called "noise.enu" that contains ingored words, and if you enter any of those words into a fullTextQuery, it will return an error.

I suspect that there's most likely a file somewhere that contains ignored words for this search, too (maybe also with an .enu extension?), and you're going to have to write something that will check to see if the query contains only those values, and return a message to the user, if so.

If you can't find such a file, then if you're comfortable that the search works fine otherwise, then I'd just handle the error, and return an error message, assuming that the error is of this particular flavor.

-paul
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top