PS Timer

MiKman

New Member
I have a dialog that I want to display the seconds ticking by to show the user that there is in fact some kind of activity. I have tried to use the PSTimer to update a fillin field on the dialog. my dialog calls several other programs and while it is out there doing that I want to display the seconds ticking by.

I have added the PSTimer to the dialog and in the OCX.Tick I have the following code:
fillTime is just an integer 3 digit field. I have the Interval set to be 1000.

ASSIGN fillTime = fillTime + 1.
DISPLAY fillTime WITH FRAME {&FRAME-NAME}.

Here's the problem:
fillTime never gets updated, it remains at zero when it is first realized until the dialog gets control back from the called programs. Then the seconds tick away until you close the dialog. I want to be able to have the seconds ticking away while the other programs are off doing thier thing... any ideas?

Mike
 

Stefan De Leyn

New Member
I never had to do anything like this but I think you will need to use the PROCESS EVENTS statement in some way. An example on how to use it can be found in the PROGRESS HELP.

Hope this does the trick.
 
Top