Hi!
Esure
_VFP.AutoYield = .T.
If you afraid about performance, just switch it on for a few VFP commands at the end of a loop once/100 miliseconds, then switch it off. I can send you an example of code with such loop, if needed.
DOEVENTS also might help, but it works slower anyway because it also re-draws screens and checks for many other events, like clicks on UI controls (that might be not desired behavior).
>I have an action in the application taht takes 5 minutes or so to run.
>While running I update a list box with the status of the actions. During some longer actions I show a progress bar. This all works ok until I switch to another application and then back.
>
>At this point the application appears to hang with "not repsonding" on the title bar. I can see it's till processing because entries are being created in the database.
>
>Is there anything I can do to fix this?
>
>I tried a timer with DOEVENTS and thisform.refresh but it didn't work.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.