Recent

Author Topic: Newbie - Must be not doing something  (Read 3777 times)

ap

  • Newbie
  • Posts: 3
Newbie - Must be not doing something
« on: September 08, 2010, 02:18:20 pm »
I have table1 (quite large) and a grid containing that table showing.  Basically I am iterating through the data seeing if some conditions are met and if they are outputting the 'matches' to table2 (also with a grid showing that data).  What is happening is when I run the program the first record in table1 is always showing and nothing (initially) is output in the 'matches' grid.  Once the process completely finishes then all the matches show.  The outcome is exactly what I want but the searches I am doing can take hours to run and I have no idea whether the program has stopped or not (other than CPU working hard and the hard disk as well).  I have tried at each record to send some info to a Label so I can at least see that records are moving along but nothing happens there either.  I think there must be a compiler setting or something or I need to enable something so the grid updates when a match is found.  I also suspect that this has been covered before here but I have tried searching but cannot find anything.  Any help appreciated.

ap

  • Newbie
  • Posts: 3
Re: Newbie - Must be not doing something
« Reply #1 on: September 08, 2010, 02:40:16 pm »
Just tried on Linux (Ubuntu) rather than Windows 7.  After changing location of tables I ran the program.  After a while the screen greys out but the program is still running (hard disk being accessed constantly).  As the computer I have Linux on is an older notebook it could be a while before it completes but it probably will just come back to life with the results showing as expected.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1933
Re: Newbie - Must be not doing something
« Reply #2 on: September 08, 2010, 04:45:42 pm »
After the Label update write

Application.Processmessages

ap

  • Newbie
  • Posts: 3
Re: Newbie - Must be not doing something
« Reply #3 on: September 08, 2010, 09:48:53 pm »
Thank You.  Issue solved.

 

TinyPortal © 2005-2018