Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loop Timer and File Checking
Message
From
30/05/2008 15:08:25
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01320672
Message ID:
01320683
Views:
14
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform