Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer with Forms
Message
De
20/02/2009 12:30:16
 
 
À
20/02/2009 10:44:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01383044
Message ID:
01383124
Vues:
55
>Yep, and I had done what Naomi had suggested with the 'set library' command, but the prg's didn't seem to work. I took a look at the code and found that the fll that was named in the code was bbtimer.fll, yet the file that was included in the download was cpptimer.dll.

In the INIT
SET LIBRARY TO cppTimer.fll ADDITIVE
InitTimers( 1, 1000 )                  && check one timer every second.
SetupTimer( 1, 1000, "DO myTimerEvent" )
In the DESTROY event
StopTimer( 1 )
RELEASE LIBRARY cppTimer.fll
The myTimerEvent routine
procedure myTimerEvent
    *-- do something
endproc
Check the ReadMe.txt file for descriptions of the functions and how tp used them. I prefer this timer over the Fox timer. It does not stop when other events occur. But, I have noticed that it does not fire if a system dialog (like MessageBox) is open, perhaps a good thing.
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform