during the execution of a function.

S

samp

I wish I could keep open a form displaying the current time and a
timer (time elapsed from the opening of the form) during the execution
of a function.

At the beginning of this function form would be loaded and at the end
of the function, would be closed.

If I run the form alone, there are no problems. But if I call it
within a function, time and timer are not updated.

It turns out that after the function to load the form, the events are
not executed but the other instructions of the function. Its run both
at the same time?

While the codes are executed, would like to keep the form on the
screen to inform the current time and how long the MyFunction is
running.
 
K

KARL DEWEY

What about using a second form at the same time, both reduced to fit
side-by-side ot top-to-bottom.
The second form to display the times by macro action Set Value. You would
need two macros, one to set time and open your form and second using On Close
event of the form being timed. The second macro set the end time on the
second form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top