> In my program the user enters a string and the application checks
> if it's spelled right or wrong, how do i locate the error in the
> string? Ex. string to be entered: "visual basic" Entered
> string: "visual lasic" How do I for example a msgbox with the
> text: "you spelled wrong: "visual Lasic"" (note the big L)?
Unless you are testing the users' typing ability or their spelling
ability, it would be much better to give them a list box or a combo box
from which they can choose the appropriate phrase. Obviously, if you
can check phrases for validity, you know what they should be.
Otherwise, you should use a spelling checker... third party, or the one
in Office via automation. That will, unfortunately, check only word by
word.
--
L. M. (Larry) Linson
Access example databases at http://homestead.deja.com/user.accdevel
New: Book reviews, previously published in North Texas PC News
Script execution must be enabled and Windows set to Small Fonts
Sent via Deja.com http://www.deja.com/
Before you buy.