Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of VFP timer
Message
 
 
À
19/07/2004 04:59:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00925677
Message ID:
00925740
Vues:
10
Rolf,

That'll work, at the expense of having a huge memory footprint of a VFP app running all the time. You should take a look at using the Tasks folder in the Windows folder to schedule the execution of a program.

>Is there anything I ought to know or to consider if I want to use a program like this?
>I have tested it, and it seems to work, but I am not certain if there are side effects that I may
>be unaware of? Will the program have any effect on the normal operation of the system while it is idling?
>
>parameters ptid
>deftime = ptid
>set resource off
>_screen.visible = .f.
>tid = createobject("timer")
>tid.interval = 6000
>do while .t.
> if time() > deftime
> do myProgram && perform action and exit at desired time
> exit
> endif
>enddo
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform