Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Counting events
Message
From
01/08/2001 13:35:53
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
 
 
To
01/08/2001 07:24:04
General information
Forum:
Visual Basic
Category:
Other
Title:
Miscellaneous
Thread ID:
00538212
Message ID:
00538421
Views:
7
You should probably use a static variable inside your procedure (if you need to have other procedures work with the values use a private module level variable (or in the case of multiple forms requiring access, use a public module variable or a module variable)).



Private Sub Timer1_Timer()
Static TimeCounter as integer

TimeCounter = TimeCounter + 1
If Time Counter = 5 then
'Do something you want every 5 seconds
TimeCounter = 0 'reset the counter every 5 seconds
End If

End Sub

Set your Timer Interval property to 10000 (every second) and you should be fine.
Previous
Reply
Map
View

Click here to load this message in the networking platform