Hi all,
i am implementing a simple timer to check the status of an object every 5 sec. I came across this post, https://forums.jadeworld.com/viewtopic. ... imer#p3565, which mentioned about timer, but i tried and cant mange to get the timer working. the following is how i implemented,
i tried to write a test code in JadeScript:
vars
reg:Register; // a object i have
begin
create reg transient;
beginClassNotification(Register, true,User_Base_Event, Response_Continuous,1);
reg.beginTimer(5000, Timer_Continuous ,1);
end;
in the Register class, i created a timerEvent method, in the method:
timerEvent(eventTag: Integer) updating;
vars
begin
if eventTag=1 then
write 'show me';
endif;
end;
i dont know where goes wrong, please advices. Thanks!