murray83
Games Collector
- Local time
- Today, 04:17
- Joined
- Mar 31, 2017
- Messages
- 827
Here is my code which counts down from 20 seconds and then makes the question for my quiz change
But im trying to do the reveser and i thought would of been as easy as just flip the
from a minus to a plus and of course give it a new name so i did this
but all it does is got from 0 to 1 and then bugger all, please help, cheers
Code:
Private Sub Form_Load()
'this timer bit is for the count down on how long have left to answer the dam question
mintTimer = 20 ' 20 seconds
TimeLeft.Value = mintTimer ' show the time in a textbox
TimerInterval = 1000 ' 1 second
End Sub
Private Sub Form_Timer()
'for the coundt down for question
mintTimer = mintTimer - 1 ' count down
TimeLeft.Value = mintTimer ' show the time in a textbox
If mintTimer = 0 Then
RememberQuestionNo = RememberQuestionNo + 1
Call GetQuestion
mintTimer = 21
End If
End Sub
But im trying to do the reveser and i thought would of been as easy as just flip the
Code:
mintTimer = mintTimer - 1 ' count down
from a minus to a plus and of course give it a new name so i did this
Code:
Private Sub Form_Load()
'this timer bit is for the count down on how long have left to answer the dam question
mintTimer = 20 ' 20 seconds
TimeLeft.Value = mintTimer ' show the time in a textbox
TimerInterval = 1000 ' 1 second
'this timer bit is for the count on how long you have taken for the whole quiz
mintTimer2 = 0 ' 0 seconds
txtYouHaveTaken.Value = mintTimer2 ' show the time in a textbox
TimerInterval = 1000 ' 1 second
End Sub
Private Sub Form_Timer()
'for how long taken
mintTimer2 = mintTimer2 + 1 ' count up
txtYouHaveTaken.Value = mintTimer2 ' show the time in a textbox
'for the coundt down for question
mintTimer = mintTimer - 1 ' count down
TimeLeft.Value = mintTimer ' show the time in a textbox
If mintTimer = 0 Then
RememberQuestionNo = RememberQuestionNo + 1
Call GetQuestion
mintTimer = 21
End If
End Sub
but all it does is got from 0 to 1 and then bugger all, please help, cheers