Loader bar

Lemon

Member
Joined
Dec 6, 2003
Messages
15
Hi,

How can i use a loaderbar while my program is reading a query from a database, or while inserting querys, or while doing a number of actions?

Or while a listbox is filling itself enc.
 
The best ways of doing this are specific to what is happening but in general, you need a progress bar and a way of calculating how far through a process, the program is. For example... say you were going to load a large file, you could get the number of lines or something, devide 100 by that number, and then for each line or whatever add the result to the value of the progress bar. That sounded a bit heavy didnt it!? any problems, reply and i will try to explain myself a little better.
 
Yes i understand you.

So i need to create like bookmarks in my code? but then is the loader jumping i think. For example, i do like 4 querys, filling an array enc en doing some calculations, then i need to put in that code bookmarks that update the loader?
 
Back
Top