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
Clock it with a Timer.
Microsoft MVP - Visual Basic 2006-2013 Why VB clears the clipboard on startup and how to avoid it? . Filtering Arrays . Save File To Database . Extract File From Database . Extract picture from database without using hard drive . Change Menu BackColor . How to use MS Flexgrid . Make Frame Transparent . The Easiest Way to Create an NT Service With VB6 . How to comment blocks of code in VB5 and VB6 . How to find and replace missing members of control array Visual Basic 6.0 On-Line Documentation . Connection Strings
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
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
VB6 MSDN, AllAPI.
Forum Rules