rajram_rvr
20th January 2011, 06:57
Hi Gurus
I have a scenario, where in i need to display Current running time / clock. I did this Using Interrupts Section (with set timer of 10 secs). But now due to this, when interrupt is executed every 10 secs, its intervening the normal user Input in the form. Is there a way to avoid this? So that interrupt functions in the background or User input is not disturbed.
Your response is highly appreciated.
Thx
Ramanujam.V
george7a
21st January 2011, 13:13
I would execute it every 60 seconds not 10. It won't solve the problem but it will make it a bit better.
rajram_rvr
24th January 2011, 02:27
Hi George
Thanks for your response. I did the same way to reduce the instances. But though the issue is reduced , but still not satisfied by users :)
Regards
Rama
sameer.don
24th January 2011, 14:49
Hi RVR,
Instead of using a normal form field for displaying current time, you can try to introduce a field using dscfield() function. This function puts a field on form Even if it is not a part of form design. Try to visit help file for all the dsc* functions. May be you could find some way to refresh time without interrupting user operation.
If you are using a normal form field or a table field for displaying time, then there may not be appropriate event section, which you can use to refresh time-field.
mark_h
24th January 2011, 16:13
Would it be possible to skip the clock update if update.status was add or modify? Something like that.
rajram_rvr
25th January 2011, 02:45
Hi Sameer
Thanks for the reply. Even the Dsc field creates an object and it needs to be changed on regular intervals to have a running time, this again i tried using interrupts, but the same thing.
For now as George said, i have made it to 60 secs as the time interval.
Thanks
Rama
george7a
25th January 2011, 10:03
Here is something new...
How about running a new application that should show the time/clock?
This new application (ex: Visual Basic Executable) can be, as the windows task manager, always on top of every other window so that the user can see it. You can customize it as you want.
I hope it helps,
- George
rajram_rvr
26th January 2011, 02:17
Thanks George
Good one. Didnt think of this option. I will have a go with separate clock.
Rama
george7a
26th January 2011, 08:47
Let us know how it goes..