Hi Dragan,
>George, I think we got the third member of Foxtools Forever & Dark Beer Club.
Yep, I think so too. We might, however, not all like the same dark beer. But's that's a triviality.:-)
>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 :).
Hmm, been reading old Fox Software ads, I see.:-)
George
Ubi caritas et amor, deus ibi est