Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer takes over - request advice
Message
From
17/10/2006 02:58:56
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01162420
Message ID:
01162423
Views:
13
>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?

You could put the "2 minute" code in a separate .EXE. Then you could either:

- run that .EXE in parallel with the user's code and have a 15 minute timer in it
- have no timer in it; instead, call it from your existing timer asynchronously via the ShellExecute API function, Ed Rauh's API_AppRun class, etc.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform