Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Bit of help here.. TIMERS [SOURCE]


Drag0n
 Share

Recommended Posts

Okay. If I have this code:
```
Private Sub Timer1_Timer()
Label1.Caption = Format(Val(Label1.Caption) + 0.01, _
"fixed")
Loop
End Sub

```and then this code:
```
Private Sub Command1_Click()
Call Timer1_Timer
End Sub

```Anything wrong with that? I dunno how to start the timer..
Link to comment
Share on other sites

Still doesn't work..

here's entire code

```
'Resets timer
Private Sub Command4_Click()
Label1.Caption = ""
End Sub
'IS the timer
Private Sub Timer1_Timer()
Label1.Caption = Format(Val(Label1.Caption) + 0.01, _
"fixed")
End Sub
'Starts the timer
Private Sub Command1_Click()
Timer1.Enabled = True
Call Timer1_Timer
End Sub
'Pauses the timer
Private Sub Command2_Click()
timer1_enabled = False
Stop Timer1_Timer
End Sub

```
Link to comment
Share on other sites

Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
'Pauses the timer
Private Sub Command2_Click()
Timer1.enabled = False
End Sub

that should work, otherwise the stuff in the timer is wrong,
or the timers properties

also try just this as your timer

Private Sub Timer1_Timer()
Label1.Caption = "THANKS UNNOWN"
End Sub
Link to comment
Share on other sites

Let me get it straight. When I press Command1 ("Start") it goes up 0.01 then nothing happens. If I press it again it goes to 0.02\. Is there a way to continually add 0.01 until someone presses stop? like a stopwatch?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...