On Aug 21, 2006, at 11:50 AM, Richard wrote:
Is there any way to save (and load) a multi-column listbox to a
file as a single entity?
The reason I ask is that, as far as I know, the only way to save &
restore the contents of a listbox is one item at a time via code. I
have a 10-column listbox with 13,000 rows and to reload it from a
file one item at a time takes forever and a day. I think the
slowdown is in AddRow when the listbox has many rows in it, since
the first few hundred rows load in a flash, but by the time it has
several thousand rows in it, it has slowed to a crawl. Can anyone
suggest a solution?
A few come to mind.
1. Hide the window during loading.
2. DisableBackgroundTasks.
3. Store the data in an array and only display in the listbox what
the listbox shows. Requires a custom scrollbar and a few pointers.
4. Use a Database.
Terry
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>