tips
[Top] [All Lists]

Adding rows faster

To: "REALbasic Tips" <REALbasic-tips at lists dot realsoftware dot com>
Subject: Adding rows faster
From: Geoff Perlman <geoff at realsoftware dot com>
Date: Mon, 28 Feb 2000 12:18:31 -0600
If you have code that is calling the AddRow method of a listbox, there is a simple way to make your code run four times faster. Just make the listbox invisible (by setting its visible property to false) before loading the data
and visible afterwards. This technique is faster because REALbasic won't
attempt to redraw the listbox after each call to AddRow.

This technique would also work with other types of controls such has
editfields.
--

Geoff Perlman
REAL Software, Inc.
http://www.realsoftware.com
mailto:geoff at realsoftware dot com



 - - - - - - - - - -
Got a useful tip to share? Send it to us at:
REALbasic-tips at lists dot realsoftware dot com dot
For list commands, send "Help" in the body of a message to
<requests at lists dot realsoftware dot com>



<Prev in Thread] Current Thread [Next in Thread>
  • Adding rows faster, Geoff Perlman <=