开发者

What is the maximum number of lines a TextArea control can hold?

开发者 https://www.devze.com 2022-12-13 17:39 出处:网络
I have an app that has text appended to a TextArea (TA). It automatically scrolls to keep the recent line added in view. Over time, this could be a lot. Do I have to wo开发者_开发问答rry about this? I

I have an app that has text appended to a TextArea (TA). It automatically scrolls to keep the recent line added in view. Over time, this could be a lot. Do I have to wo开发者_开发问答rry about this? Is there an upper limit? And, if so, how can I prune the oldest lines of text?


There's nothing in the documentation, but if it gets too big you could run into memory issues. But we're talking collosal here.

It's easy enough to remove oldest lines using the slice() method

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号