Timer function

Dear All,

how to write a timer function to wait for the inputs from the devices for a field. Please give me the solutions.

Thanks,

G.Rajkumar.

How should it work?

not sure but can you try with like Winapi::wait(5000); //wait for 5000 seconds…

Hi Martin,

I am using a StringEdit object, I activated the textChange() method, using this method the timer should activate when a change occurs. This process is for Barcode scanning purposes. Because, we should not use the keyboard for key in the data on that particular StringEdit field. The length of the Barcode String is 8 to 10 Character. While using keyboard it may take 3 to 4 seconds to type, but using the scanner we can scan it with in a second. For this purpose this timer needed. to check the key in time.

We have to scan the data from the Barcode itself using Barcode reader, which is connected in the Keyboard port (PS/2) along with the Keyboard.

Pl. do the needful.

Thanks,

G.Rajkumar,

+91-94-876-75157.

may be u can use sleep() function …

sleep(5000)—5 Seconds

regards,

Krishna

You can use setTimeOut() to execute a method after a certain amount of time.

Dear Martin,

Finally, we achieved the requirement by using setTimeOut() function.

Thanks for your suggestion

G.Rajkumar,

+91-94-876-75157

If you’re satisfied with an answer, please mark it as Solution. It helps others to see that the problem is resolved and to find the answer if needed.

Hi Martin,

Its fine working now.

Thanks,

G.Rajkumar

is any special chat is there.

G.Rajkumar