Hi Bela,
NullEvents fires only when nothing happens.
This means that the UDF fires only if the user doesn't touch the KB
or the mouse. Right? What happens if the user runs an SQL and
keep moving his mouse?
I think u have to update the Thermometer during the normal events
as well as the NullEvents. (It'll be slower!)
BTW, How do you know in advance when the SQL is gonna complete?
HTH,
Biju
>
>
> Hi everybody!
>
> I am working on a timer solution. I have found that VFP timer control
> doesnot get event during long statements like SQL select,
> and user actions (mousebutton down on window title etc.)
> I wrote an fll, in which I use the NullEvent to check the elapsed time, and
> if an interval is over it fires a UDF. (Time resolution 1 sec) It works
> under normal VFP statements like SQL select (so it is good for animated
> thermobar bmp-s, which has no affects for the select performance - max 4
> percent slower). But ...
> VFP NullEvents doesnot come under some user actions. So, if user push down
> the mouse button my timer event isnot fired.
>
> Has anybody any idea?
>
> BB
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement