Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loop Timer and File Checking
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01320672
Message ID:
01320683
Vues:
15
What about:
llFound = .F.
ltStart = DATETIME ()

DO WHILE NOT m.llFound AND (DATETIME () - m.ltStart < 10)
   IF FILE('THEFILE.TXT')
      PROCESS THE FILE
      llFound = .T.
   ELSE
      WAIT WINDOW "" TIMEOUT 1
   ENDIF
ENDDO

IF NOT m.llFound
   MESSAGEBOX ABOUT FAILURE
ENDIF
>Won't this Wait 10 seconds, THEN let me look for the file?
>
>I was wanting to immediately exit back to the program as soon as the File comes into existence, or exit after 10 seconds.... whichever is first.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform