Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wait while stops showing the number
Message
From
20/09/2020 09:55:07
 
 
To
19/09/2020 09:27:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01676163
Message ID:
01676171
Views:
71
>Neither watertight nor consequent - select ("sometable") but skip in ("sometable") something is too much... still
>>The code is not called in a function. Here is a simplified version:
>>
>>
>>select ("sometable")
>>cTotal = " records already done of " + str(reccount("sometable")) + " records"
>>iCount = 0
>>go top
>>do while !eof()
>>     iCount = m.iCount + 1
>>     wait clea
>>     * DoEvents  && should NOT be necessary
>>     wait nowait  str(m.iCont) + m.cTotal
>>     *--- something happens to the record in "sometable"
>>    select ("sometable") && as eof() works on workarea and "something" might affect it 
>>     skip
>>enddo
>>
>
>or add in clause to go top and eof(), but don't mix. Your code misses benefits from either approach, only has problems of both. Still, the Wait Clea line ***should*** be enough, unless screen driver has a problem, as it removes prev hint.

It seems like some form of "caching/queueing" of screen updates is happening (i.e. screen updates go to a "frame buffer" which may not be immediately "flushed" to the actual display) -- sometimes a DOEVENTS might help to "unstick" this -- though if your program is running through a remote desktop, the problem will still problem occur).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform