Re: A spell checker- help in code needed

Posted by RussCAp12602 on April 26, 2008

In Reply to A spell checker- help in code needed posted by pooja on April 25, 2008

I don't know how you intend to get the file into the memobox, but I would use memobox.loadfromfile().

The memobox is expected to contain the file's contents stored in the Lines property. You can't use EOF() as you indicate.

Instead, use:

for i := 0 to MemoBox.Count - 1 do
Now parse MemoBox.Text[i]

I forget whether the Text[] rangs is 0..Count-1 or 1..Count

I think you will have to delimit your words when you encounter a non-letter or non-digit rather than simply a space.

Related articles


Follow Ups