Scripts & Timers

What is the scope of timer routines in an object? 

If I set a timer using object.SetTimer 200,10  with the associated Sub object_ontimer200 / End Sub routine within the script of an object, is there any need to make the timer identifier, (i.e. '200' in this example) unique outside the scope of the object?  In other words, if I have 10 DX objects on my desktop and they all have timers in their scripts, do they need to be named differently to avoid a conflict?  I've been naming all of my timers differently, but it's becoming hard to keep track.

Thanks

3,521 views 1 replies
Reply #1 Top
You may use the same ID(s) for Timers only if each of 10 objects you want to control have their own scripts. And all of them will work.

In the other case you will get a conflict. So you need rename them like Timer 201, 202, 203, 204, etc...