Results 1 to 3 of 3

Thread: [RESOLVED] Call Function X Time

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2005
    Posts
    230

    Resolved [RESOLVED] Call Function X Time

    Hello Guys,

    I just want to ask you guys, if anybody know away to code a function so it can be call maximum 3 times/ minute.

    Thanks

  2. #2

  3. #3
    Frenzied Member
    Join Date
    Oct 2003
    Posts
    1,301

    Re: Call Function X Time

    Code:
    Sub The_Sub()
    Static t(3) As Single
        t(0) = Timer
        If t(0) - t(3) < 60 Then Exit Sub
        t(3) = t(2)
        t(2) = t(1)
        t(1) = t(0)
        'code here
    End Sub

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