NetTalk Central

Author Topic: Progress update from executing child threads  (Read 5228 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Progress update from executing child threads
« on: September 28, 2014, 04:02:26 AM »
Hi,

I have a browse and each row has a button that starts a thread that will run for about 4-20secs.
The user clicks each row's button and triggers the thread.

Is there a way that I can update the calling browse page and update each row with progress info, either a information string or percentage?

Currently the threads write progress info to table, and the user has to click a refresh browse button to refresh the browse to see updates.
Works, but not nearly as sexy as auto updates would be.

Is using a timer the best answer here?


thanks

Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Progress update from executing child threads
« Reply #1 on: September 28, 2014, 10:24:40 PM »
it would be timer based, yes, but ideally you don't want to refresh the whole brows eon a timer -that would be very wasteful.

Without having tried it - my instinct would be to put the browse on a form, the form has a progress bar, and so you can show the progress there.

cheers
Bruce