Information générale
Catégorie:
Codage, syntaxe et commandes
I don't know about running this as a "service", but after you create the timer, you need to issue a READ EVENTS ... then you'll be off and running.
Of course, you'll need to CLEAR EVENTS somewhere ... or you'll run indefinitely.
>This should be a simple question,
>
>How would I create an exe that will run code at a specified interval.
>this is what i was trying. And can anyone point me in the direction of how i could run this exe as a service?
>
>Thanks,
>
>Paul
>
>oTimerObj=CREATEOBJECT('AppTimer')
>
>
>DEFINE CLASS apptimer as Timer
>interval = 60000
>PROCEDURE timer
>do somefunction()
>endproc
>ENDDEFINE
>PUBLIC oTimerObj
>
>
>function somefunction
>
>Do what I want
>
>endfunction
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