Refreshing textareatext

BlitzMax Forums/BlitzMax Beginners Area/Refreshing textareatext

tonyg(Posted 2006) [#1]
I have used AddTextAreaText to display the values of a list of objects.
I have now sorted the list so want to redisplay the textareatext in it's sorted format.
How do I either remove and then addtexteareatext again or refresh the data that is there?


LosButcher(Posted 2006) [#2]
You can use SetTextAreaText if you just want to display some text. I dont know how you are using it but if its just for display you could use a label?


klepto2(Posted 2006) [#3]
You have to SetTextAreaText(textarea,"") to clear the current text and then you have to add the text again with AddAreaText.
Or you load the sorted text into one string seperated with the newline char ('~n') and use SetTextAreaText with this string directly.


tonyg(Posted 2006) [#4]
Blimey, it is as simple as that.
Many thanks