khosrwb Active Member Licensed User Longtime User Oct 2, 2015 #1 when I click on button1 and chenge time then select "yes" or "no" this error occored: an Error has occrored in sub:main_button1_click(java line:380) java.long.IllegalStateExeption:Interval most be than larger than 0. continue? Attachments mm.zip mm.zip 7.9 KB · Views: 307 mm1.PNG 21.1 KB · Views: 409 Last edited: Oct 2, 2015
when I click on button1 and chenge time then select "yes" or "no" this error occored: an Error has occrored in sub:main_button1_click(java line:380) java.long.IllegalStateExeption:Interval most be than larger than 0. continue?
DonManfred Expert Licensed User Longtime User Oct 2, 2015 #2 khosrwb said: java.long.IllegalStateExeption:Interval most be than larger than 0. Click to expand... Code: Copy Starter.timer1.Interval=0 is wrong... You must give the timer a higher interval But you are using the timer wrong. You should FIRST disable the timer, then set a interval, then - if you want to run the timer - you enable the timer again. Upvote 0
khosrwb said: java.long.IllegalStateExeption:Interval most be than larger than 0. Click to expand... Code: Copy Starter.timer1.Interval=0 is wrong... You must give the timer a higher interval But you are using the timer wrong. You should FIRST disable the timer, then set a interval, then - if you want to run the timer - you enable the timer again.
RandomCoder Well-Known Member Licensed User Longtime User Oct 2, 2015 #3 I'm not able to check the zip file at the moment but a best guess from the error message is that you are attempting to set the interval of a timer to a value of zero or less. If you are setting a timer interval I suggest putting a log statement immediately before that line of code to show you what value is actually being set. Nb. Manfred must have been replying at the same time as me. Upvote 0
I'm not able to check the zip file at the moment but a best guess from the error message is that you are attempting to set the interval of a timer to a value of zero or less. If you are setting a timer interval I suggest putting a log statement immediately before that line of code to show you what value is actually being set. Nb. Manfred must have been replying at the same time as me.
LucaMs Expert Licensed User Longtime User Oct 2, 2015 #4 RandomCoder said: Nb. Manfred must have been replying at the same time as me. Click to expand... Question of... timers Upvote 0
RandomCoder said: Nb. Manfred must have been replying at the same time as me. Click to expand... Question of... timers
khosrwb Active Member Licensed User Longtime User Oct 3, 2015 #5 thanks DonManfred thanks RandomCoder Upvote 0