viewpoint-particle

Author Topic: Updating a Dialog From Within a For/Next Loop  (Read 1389 times)

jtrask

  • Jr. Member
  • **
  • Posts: 68
Updating a Dialog From Within a For/Next Loop
« 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)?

td

  • Tech Support
  • *****
  • Posts: 2223
    • WinBatch
Re: Updating a Dialog From Within a For/Next Loop
« Reply #1 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.
"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
  - Bill Gates


jtrask

  • Jr. Member
  • **
  • Posts: 68
Re: Updating a Dialog From Within a For/Next Loop
« Reply #2 on: October 07, 2015, 02:02:09 pm »
Thanks.  I'll play around with the timer and see what happens.