jeannepjones
asked on
Multiple Timers in Powerbuilder 10.5
I need you use multiple timers in one window, is this possible?
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
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)
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much for your help!
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