Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Delphi Progress Bar

  • 04-03-2008 11:26AM
    #1
    Closed Accounts Posts: 5,240 ✭✭✭


    I have created a report generator in delphi. Basically there are 4 filters that the user selects from, they then click generate and the form is printed.
    Because of the size of the database i am working with the delay between clicking generate and the report displaying can be a few seconds.

    I want to use a ProgressBar to indicate how far the process is. I found these examples:

    http://www.swissdelphicenter.ch/torry/showcode.php?id=330

    Im just not sure what i would use as a counter, they use the fileSize but im not transferring a file, im just getting entry's from a DB. Any ideas?

    Cheers
    Endo


Comments

  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Maybe you could base it on the number of records processed instead of bytes?


  • Closed Accounts Posts: 5,240 ✭✭✭Endurance Man


    Ye, thats logical ><, will have to just see if i can get a hold of the record number, hopefully i have access to the fields in the report.


Advertisement