realbasic-nug
[Top] [All Lists]

Fastest append to text field?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Fastest append to text field?
From: Michael Diehr <md03 at xochi dot com>
Date: Fri, 30 Nov 2007 10:30:31 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
If you have text field which serves as a log, what's the fastest way  
to append to it?

either
   editField.SelStart = editField.text.Len
   editField.SelText = data + EndOfLine

or
   editField.text = editField.text + data + EndOfLine

e.g is it faster to Insert using .SelText, or to just replace the  
whole .Text object?  Assume data is a single line of text.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>