Been there, done that. 

No, for loading data from a database the listbox doesn't cut it. As far as I 
remember the load time isn't linear.

On 28.12.2011, at 08:40, Maximilian Tyrtania wrote:

> Well, maybe, but that doesn't answer my question. Did you try setting the 
> listbox invisible while it's loading the data?
> That really really helps. Look:
> 
>  dim start,ittook as double
> 
>  self.Listbox1.DeleteAllRows
>  start=Microseconds
>  Self.Listbox1.Visible=false
>  for i as Integer=0 to 10000
>    Self.Listbox1.AddRow("A","B","C","D")
>  next
>  Self.Listbox1.Visible=true
>  ittook=Microseconds-start
> 
>  MsgBox("It took "+str(ittook/1000000)+" seconds")
> 
> This code populates the listbox in 0.08 seconds on my 2,66 Ghz MacBook. 
> That's not slow. It does take half a second if you don't set the listbox 
> invisible.

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to