>Is there a quick way to extract a "Word" from a string? I thought there were functions similar to WordCount() and WordNum(), but I can't find them.
>
>The idea is to do something like this:
>
>
>MyString = "Option 1;Option 2;Option3"
>for i = 1 to WordCount(MyString, ",")
> ? WordNum(MyString, i, ",")
>next
>
>
>Regards, Hilmar.
Hilmar,
Words(), WordNum() are part of foxtools.fll but wordnum() runs slow. A faster approach is another custom fll if words expected to be more than 65000 or alines() :
lnWordCount = alines(arrWords,chrtran(lcString, lcDelimiter, chr(13)))
for i = 1 to lnWordCount
? arrWords[i]
endfor
Cetin