Posted: Tue Feb 24, 2015 9:23 pm Post subject: Re: how to use Button?
SteveAndrew wrote:
Try it like this instead:
thank you
I know where I take mistake
can you help again?
I got another problem
my code
Code:
function CEButton1Click(sender)
if timer_getEnabled(CETimer1) == "True" then
timer_setEnabled(CETimer1, false)
elseif timer_getEnabled(CETimer1) == "False" then
timer_setEnabled(CETimer1, true)
end
end
function CETimer2Timer(sender)
UDF1.CELabel1.Caption = timer_getEnabled(CETimer1)
end
my structure
UDF1
└CEButtion1
└CELabel1
└CETimer1
└CETimer2
I got the error "Invalid class object"
if any where I take mistake?
I don't Know how to get and control the state of Timer
I hope to let CETimer2 get CETimer1.Enable state and renew the CELabel1.Caption
PS.sorry my English is poor and I can't post picture in the reply
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum