| | |
Stopping a timer
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2005
Posts: 3
Reputation:
Solved Threads: 0
I have a program in which a series of events occir each time the timer runs. However i want to stop the timer when a certain variable reaches another variable. I have tried
If variable1 = variable 2 then
timer.enabled = false
but the timer continues. Why is this. If anyone has a resolution can u demonstrate it with the example above. Thanx
If variable1 = variable 2 then
timer.enabled = false
but the timer continues. Why is this. If anyone has a resolution can u demonstrate it with the example above. Thanx
you could try this one
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
If X Mod 2 Then ' // Odd Number Here Else ' // Even Number Here End If
•
•
Join Date: Jun 2005
Posts: 70
Reputation:
Solved Threads: 2
Hi, Invisal, I know I should have done a proper example, like
Just wondering about that 'Mod 2'. Haven't seen it before, can you explain?
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
If x / 2 = Int (x / 2) Then 'it's even so do something Else 'it's odd, so do something else End if
Just wondering about that 'Mod 2'. Haven't seen it before, can you explain?
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: When Can I Use FSO FileSystemObject
- Next Thread: binary counter
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





