Link to home
Start Free TrialLog in
Avatar of jeannepjones
jeannepjones

asked on

Multiple Timers in Powerbuilder 10.5

I need you use multiple timers in one window, is this possible?
Avatar of sandeep_patel
sandeep_patel
Flag of United States of America image

Yes...create Standard Class Object of type 'timing' and create as many instance of it in your window. Don't use Timer Event of window rather user Timer Event of that object.

For detail see pb help for Timing Object.

NOTE: don't write any comment or script in stop function of this object (there is a PB bug and it won't stop timer)

And let me know if you need any more help in using this.

Regards,
Sandeep

Avatar of jeannepjones
jeannepjones

ASKER

thanks!
I created a standard class object, chk_endofshift as a type timing, in the timer event put the event I need it to run (w_main.event ue_chk_endofshift()) ,  then in my window (w_main) I put chk_endofshift.start(5), but I get the error null object reference on this line (chk_endofshift.start(5).  

is there somthing else I need to do.

thanks for your help,

jj
you might forgot to create instance of object in w_main.

1) declare local/instance variable
chk_endofshift   ichk_endofshift
2) create instance of it.
ichk_endofshift = create chk_endofshift
3) Then call chk_endofshift.start(5)
ASKER CERTIFIED SOLUTION
Avatar of sandeep_patel
sandeep_patel
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you very much for your help!