LitDev,
I did get this to work by putting in a while program delay loop. Here's the code:
'Name=LDTimer.AddTick("OnTimerTick")
'LDTimer.Interval(Name,0)
Name=LDTimer.Add()
LDTimer.Interval(Name,0)
LDTimer.Tick=OnTimerTick
While "True"
Program.Delay(0)
EndWhile
Sub OnTimerTick
TextWindow.WriteLine("Here")
EndSub
Notice there isn't any actual delay, but the program keeps on running. So, originally it doesn't have enough time for the tick event to occur, but with the SB timer it is able to do it. Interesting!
JR
My question now is does each of the ldtimers run on a separate thread?
I did get this to work by putting in a while program delay loop. Here's the code:
'Name=LDTimer.AddTick("OnTimerTick")
'LDTimer.Interval(Name,0)
Name=LDTimer.Add()
LDTimer.Interval(Name,0)
LDTimer.Tick=OnTimerTick
While "True"
Program.Delay(0)
EndWhile
Sub OnTimerTick
TextWindow.WriteLine("Here")
EndSub
Notice there isn't any actual delay, but the program keeps on running. So, originally it doesn't have enough time for the tick event to occur, but with the SB timer it is able to do it. Interesting!
JR
My question now is does each of the ldtimers run on a separate thread?