Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Please help me people!!!!!
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
RaLz




PostPosted: Tue Jun 08, 2004 9:32 pm   Post subject: Please help me people!!!!!

if i have two timers in a control array how come this doesn't work Private Sub badchartimer_Timer(2)

i really need to know how to get this to work cuz this is really stressing me out
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Tue Jun 08, 2004 10:08 pm   Post subject: (No subject)

thats because you don't do that...
code:

Private Sub Timer1_Timer(Index As Integer)


where index gets assigned the value of the element that is being called. To have a special method for the 2nd timer, you would put
code:

if index=2 then
print "2nd timer clicked"
end if
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: