Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for a file in a directory
Message
De
04/01/2002 12:36:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00600802
Message ID:
00600829
Vues:
20
To add to David's comment...

When the timer() method fires, you should disable the timer before you run your process. This prevents potential problems of the timer firing again while the process is running:
*timer() method
local lnInterval

lnInterval = this.interval
this.interval = 0            && or you could: this.enabled = .f.

* call your process here

this.interval = lnInterval   && or you could: this.enabled = .t.
endproc
>Hi,
>
>I need to write a program that will poll a directory for a specified file. The interval of time to poll the directory is preset. If found the program should process the file. When processing the file, the program should not poll for another file even if it meets the interval of time specified.
>
>I would like to know if there is a foxpro command/control that I can use.
>
>Can I use the timer control?
>
>Thank you very much.
>
>Neetu Kumar
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform