Wednesday, March 30, 2011

TextArea() - handling text content as list of words

I Like to have access to items/list of words in TextArea, like Word(2), is there any native support for that in TextArea() or some good List object to be used.

E.g.

 1stword=TextArea.TextAsList(1)
 2ndword=TextArea.TextAsList(2)

Since there is already .htmltext, is there some HTML object that could be used to make such a list easily?

From stackoverflow
  • Nope. Just get the text in there and use a String.Split.

    Besides, if there were such a method, it would also do the split.

    Jeff Winkworth : I agree, just split the string by spaces, and iterate one at a time.

0 comments:

Post a Comment