Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wait while stops showing the number
Message
De
20/09/2020 09:55:07
 
 
À
19/09/2020 09:27:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01676163
Message ID:
01676171
Vues:
70
>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).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform