HI Expert,
i want to run my code unit every 5 min, i have tried using Timer dotnet variable but it is not working.
the below code is not trigger, could you please help ?
OnRun()
CounterG := 0;
TimerG :=TimerG.Timer; // create a Timer instance
TimerG.Interval := 30000; // 3 sece
TimerG.Enabled := TRUE;
TimerG.Start;
TimerG::Elapsed(sender : Variant;e : DotNet “System.Timers.ElapsedEventArgs”)
CounterG := CounterG + 1;
CustomerL.INIT;
CustomerL.“No.” := ‘CUST000’+‘’+FORMAT(CounterG) ;
CustomerL.Name := ’ Bala’;
CustomerL.INSERT;
// stop timer after trigger Elapsed was called 10 times
IF CounterG > 10 THEN BEGIN
TimerG.Enabled := FALSE;
TimerG.Stop(); // stops the timer
TimerG.Close();
CLEAR(TimerG);
TextFileG.CLOSE;
END;