Hello all, It's me again.
OK, the base of this question is, I am trying to test if a specific amount of time has elapsed, (IE) 1 hour 30 min. ( I am trying to cut down the amount of cigarrettes I smoke a day, so I get one every hour and a half) anyway, I know what I want it to do, my problem is formatting 'myinterval' for 90 minutes so that my if ... then segment can test to see if myinterval has elapsed.
_______________________________________________________
Option Explicit
Dim myinterval
Private Sub Form_Load()
myinterval = ?
starttime = Time
Label2.Caption = starttime
DirectSS1.Speak (starttime)
if time >= starttime + myinterval then
directss1.speak (time)
end if
End Sub
Private Sub Timer1_Timer()
Label1.Caption = Time
End Sub
__________________________________________
any help would be greatly appreciated.
>
:O> Psybertek >
:O>
____________________________
"Computer junkies never die, They just upload."
OK, the base of this question is, I am trying to test if a specific amount of time has elapsed, (IE) 1 hour 30 min. ( I am trying to cut down the amount of cigarrettes I smoke a day, so I get one every hour and a half) anyway, I know what I want it to do, my problem is formatting 'myinterval' for 90 minutes so that my if ... then segment can test to see if myinterval has elapsed.
_______________________________________________________
Option Explicit
Dim myinterval
Private Sub Form_Load()
myinterval = ?
starttime = Time
Label2.Caption = starttime
DirectSS1.Speak (starttime)
if time >= starttime + myinterval then
directss1.speak (time)
end if
End Sub
Private Sub Timer1_Timer()
Label1.Caption = Time
End Sub
__________________________________________
any help would be greatly appreciated.
>
____________________________
"Computer junkies never die, They just upload."