For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Crystal Reports > June 2005 > RE: printing a counter (being incremented in a for-next loop) in a st









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: printing a counter (being incremented in a for-next loop) in a st
DaveP

2005-06-10, 4:03 pm

Without looking at the complete For loop, I'm just guessing at this, but it
could be that Windows doesn't have time to refresh the screen, that all the
CPU time is being used by code in the loop.

After you update the counter on the form, try using a DoEvents. That'll
give up CPU time to Windows so that the screen can be refreshed.

Hope this isn't too late in coming.

"William E Voorhees" wrote:

> Just prior to showing a report using the CrystalReportViewer on a form, I am
> loading a dataset and wanting to display the number of records being added
> in the status bar panel. I am attempting to display the 'count' variable as
> it is incremented in a for next loop. Nothing displays until the for next
> loop ends.
>
> for i = 1 to 100
> ..
> ..
> sbp2.text = cstr(i) 'never shows up
> ..
> next
>
> sbp2.text = cstr(i) 'shows up fine.
>
> Your thoughts?
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com