Results 1 to 4 of 4

Thread: Timer

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Timer

    I have used a timer with an interval of 3000. How do I see tell the programme to start function1 when the timer is 1000? In other words I am asking for a counter for the timer function.

  2. #2
    nullus
    Guest
    This should do the trick

    VB Code:
    1. Private Sub Timer1_Timer()
    2.   Static intTimerCount As Integer
    3.  
    4.   intTimerCount = intTimerCount + 1
    5.  
    6.   If (intTimerCount = 1) Then
    7.     Call MySub
    8.   End If
    9. End Sub

  3. #3
    mik706
    Guest

    Deja vu

    Was Sanj's code not what you are looking for?

    http://161.58.186.97/showthread.php?s=&threadid=83114

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    Yes, it's working now, thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width