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

Looks good... but Borislav beat you to it!!

Thanks, though!!!! I appreciate the work!!
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform