WinBatch Technical Support Forum

Archived Boards => WinBatch Dynamic Dialogs => Topic started by: jtrask on October 06, 2015, 09:33:11 am

Title: Updating a Dialog From Within a For/Next Loop
Post by: jtrask on October 06, 2015, 09:33:11 am
I removed my previous post because it was crap.  I AM able to switch the source of my Reportview easily enough.

Now I have a dialog with a reportview with a list of things to do.  As each item is processed by my For/Next loop, the array is updated.  How can I get my dialog to reflect the updates to my array as they happen (or close to it)?
Title: Re: Updating a Dialog From Within a For/Next Loop
Post by: td on October 06, 2015, 01:16:40 pm
Review the ReportView Control topic in the Consolidated WIL Help file.  It has all the request you can use with the DialogControlSet/Get functions.  Since you are executing this loop insides a Dialog user defined callback routine, you will need to disable the dialog, if the loop takes much time to exit.  Otherwise, the system will think your dialog is hung.  A better approach would be to add a timer event to check for event state changes.

It is difficult to add much more without knowing more about what kind and how you are detection your events.
Title: Re: Updating a Dialog From Within a For/Next Loop
Post by: jtrask on October 07, 2015, 02:02:09 pm
Thanks.  I'll play around with the timer and see what happens.