How to I use a control array of timers in vb6? - index of..private
I'm having trouble enforcing the code of a series of timers.
I tried something along the lines
Private Sub Timer1 (Index) _ ()
'Events
End Sub
Negotiable, but will not accept that syntax.
How can I correct?
Thanks
3 comments:
Be careful with the use of switches, each having its own thread, and it is relatively resource hungry
y'd preferable to a timer and operate a single engine in the state, timers have to say (that) a static variable is a simple timer with a granularity appropriate to the needs of the event may be just. say they need a timer, all 3,5,7 and 11 seconds
then we need a timer of 1 second, and then call the manager of an event occurring at intervals of 3,5,7 11
Draw a timer on the form, copy and paste, and then click Yes to make a matrix CONTRL paste as you need to double click on a timer and can be reached at:
Public Sub Timer1_Timer (Index As Integer)
End Sub
Do what you want is to be in the subregion, the index of the index of the last timer varable just launched so that it would work.
Place timer on the form and so they have the same name. Agree to make a control array. Then double-click on the meter and syntax will be created for you. I do not remember that the index is passed as an argument for the case.
Post a Comment