Progress bar in dialog box

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Esabik
Pro Scripter
Posts: 52
Joined: Wed Jun 15, 2005 8:03 pm
Location: Fairfield, NJ

Progress bar in dialog box

Post by Esabik » Wed Jan 09, 2013 2:12 pm

Hi I have been searching the forums and I can t seem to find a clear understanding to me what needs to update in order for the progress bar in my dialog box to increment during my looping script. Can anyone shed more light on this topic??? I saw some progress bar samples but they were all outside of dialog boxes. I will have a start record count in my script and as it progresses I want to update the progress bar accordingly. So if I start with 500 records, the i would like to see the progress bar at 50% filled when it gets to record 250.

Using Dialog1 and progressbar1 inside.

Thanks :shock: :?:
Just when you thought it was safe to go in the water........:evil:

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Jan 09, 2013 2:32 pm

Simply set Max of progressbar1 to the number of records (e.g. 500). Then each time you update a record set progressbar1's Position property to the record number.

So when you're at record 250, the position would be 250 which would be 50% of the way along.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
Esabik
Pro Scripter
Posts: 52
Joined: Wed Jun 15, 2005 8:03 pm
Location: Fairfield, NJ

Post by Esabik » Wed Jan 09, 2013 4:40 pm

Many thanks thats the push I needed and have it working correctly.
:o
Just when you thought it was safe to go in the water........:evil:

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts