>>PMI George but you reminded me about a problem with Foxtools.
>>I liked the Words() and Wordnum() functions the best and they didn't make it into VFP :-(
>>Anyway, Words and Wordnum fail on strings over 256 chars in several ways. Do you know of any better utils?
>
>Hi, David,
>
>Yep, I think that Words() and Wordnum() should be included in the language proper.
>
>What I didn't (and don't) care for is the lack of correct documentation, which I think keeps people from utilizing the functions more.
>
>As for the 256 character question I hadn't run into that one, and wasn't aware of the limitation. However, using AT() to break the string into smaller pieces would probably be the first thing that I'd look at doing as a workaround.
George, I think we got the third member of Foxtools Forever & Dark Beer Club.
Another thing Words() and WordNum() never liked was the use of memo fields; they had to be converted into strings, even like this: Words(""+the_memo). As for the 256 chars limit, I've always used MLine() to chop long strings. Anyway, counting words in a long strings will probably slow things down, so I preferred chopping 'em regardless of limitation. Good thing about MLine() is that it remembers the end of last line found in the _mline system variable, so for the next line a simple MLine(the_memo, 1, _mline) looks for the next line from _mline offset, which is quick as a fox :).