Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer takes over - request advice
Message
From
17/10/2006 06:49:46
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01162420
Message ID:
01162467
Views:
16
>Any advice on how to handle the following:-
>
>One form in my application has a timer that triggers every 15 minutes.
>This runs code that can last up to 2 minutes (sending and retrieving emails using westwind).
>
>In the meantime the user is "stuck", as the form they were working on is not available until the code has finished running.
>
>What can I do to give the user a better experience?
>
>Any suggestions are welcome.
>
>Cyril

change the timer event to process 1 email
* timer
if emailSR.Count = 0
    this.Interval = 60000 && wait 10' but you can leave 1000
    RETURN
ENDIF
* process 1 email
this.Interval = 1000 && 1Email/s
this.reset
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform