Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hourglass is AWOL
Message
De
12/06/2004 17:18:45
 
 
À
12/06/2004 14:25:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00913057
Message ID:
00913109
Vues:
15
>This is a problem that I had thought was trivial, but it confounds the users. I have an app that does passthrough queries to an AS/400 that take several minutes to complete. While this is going on, fox is unresponsive, which is expected and allowable. However, it will not consistantly bring up the hourglass....and to make things worse, it puts (not responding) in the caption of the window, which makes the user go "Aw hell...it's busted" and end the task.
>
>Does anyone know how I can make the hourglass come on like it is supposed to?

You might be able to manipulate the .MousePointer property of an appropriate form, control, etc.

Another approach you could take would be to run the SPT query asynchronously (see SQLSETPROP()). This would mean you'd have to check periodically whether the query is still running or if it has finished. You could do this with a timer - say, check every 5 seconds and update a message that says "Query has been running for mm:ss - still running - please wait". A timer is lightweight on CPU so VFP would not become "unresponsive" in the Task Manager sense. Then once the query has completed you continue onwards.
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform