I stand corrected. I thought for sure I tried to use an interval larger
than 32000 and it didn't work, but it worked this time. I will have to
remember that
Rick Rose
Message
From: Dan
Date: 04/28/05 18:31:30
To: visualbasic6programming (AT) yahoogroups (DOT) com
Subject: Re: [Visual Basic 6 programming] Creating an alarm Procedure
The timer control uses a pseudo integer. The max is 65,535. They dont
allow negatives so they were able to play a math trick with the integer.
For schedule software I like an interval of less than a minute, say 32000 or
45000, so the odds are it will be processed every minute. People dont like
it when things appear late.
There are several articles that indicate 5 miliseconds is probably the
fastest you can expect due to the multi-tasking nature of the operating
system. If you need timing that tight dont use a timer control. In
practice 50 ms seems reliable.
Dan
Message
From: Rick Rose
To: visualbasic6programming (AT) yahoogroups (DOT) com
Sent: Thursday, April 28, 2005 5:14 PM
Subject: RE: [Visual Basic 6 programming] Creating an alarm Procedure
The interval is an integer, so it will only hold up to 32K+. Whatever the
exact limit of an integer is. An interval of 32,000 is 32 seconds.
Rick Rose
Message
From: Michael Sullivan
Date: 04/28/05 16:56:35
To: visualbasic6programming (AT) yahoogroups (DOT) com
Subject: RE: [Visual Basic 6 programming] Creating an alarm Procedure
I thought you could make the interval anything from 1 ms and up?
Thu, 2005-04-28 at 13:15 -0500, Rick Rose wrote:
I would give the timer an interval of 30 seconds. That is about the
maximum
you can give it. Then check the time, and see if it is time to set any
of
your alarms off.
>
Rick Rose
Message
>
From: Jean-Pierre Jamous
Date: 04/28/05 13:13:41
To: visualbasic6programming (AT) yahoogroups (DOT) com
Subject: RE: [Visual Basic 6 programming] Creating an alarm Procedure
>
Cool, but one other question Rick. If my alarm is set to go off at
1:30pm
should I take the current time - alarm time and set the interval to be
the
difference? Any other ways to handle this? That's all I could think of.
>
Message
From: visualbasic6programming (AT) yahoogroups (DOT) com
[mailto:visualbasic6programming (AT) yahoogroups (DOT) com] Behalf Rick Rose
Sent: Thursday, April 28, 2005 1:56 PM
To: visualbasic6programming (AT) yahoogroups (DOT) com
Subject: Re: [Visual Basic 6 programming] Creating an alarm Procedure
>
The best way to do that is to use a timer. It won't use up as much CPU
time
as a loop would.
>
Rick Rose
Message
>
From: Jean-Pierre Jamous
Date: 04/28/05 12:53:35
To: visualbasic6programming (AT) yahoogroups (DOT) com
Cc: VBBeginners (AT) yahoogroups (DOT) com
Subject: [Visual Basic 6 programming] Creating an alarm Procedure
>
Guys,
>
I am not sure how to construct this procedure. I have a database with a
field call alarm time, which holds the time an alarm should be fired.
What
s
the best way to write the alarm?
>
I am thinking of writing a loop that keeps checking the time and based
on
if
statements, it would check the time more frequently as the time
approaches
However, I run into a problem using this method.
>
1. I might have more than one appointment scheduled on the same day with
alarms turned on for each one. How do I accommodate all appointments?
I cannot create a loop per appointment. Any ideas?
>
2. If I go by the idea mentioned above of using a loop and keep checking
the
time, am I killing my computer's resources? This is very new to me and I
have never experienced it anywhere. So any help is tremendously
appreciated.
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.4 - Release Date: 4/27/2005
>
>
>
[Non-text portions of this message have been removed]
>
>
>
>
Yahoo! Groups Links
>
>
>
>
>
>
>
>
[Non-text portions of this message have been removed]
>
>
>
>
Yahoo! Groups Links
>
>
>
>
>
>
>
>
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.4 - Release Date: 4/27/2005
>
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.4 - Release Date: 4/27/2005
>
>
>
>
>
>
Yahoo! Groups Links
>
>
>
>
>
>
>
>
[Non-text portions of this message have been removed]
>
>
>
>
Yahoo! Groups Links
>
>
>
>
>
>
>
Yahoo! Groups Links
[Non-text portions of this message have been removed]
Yahoo! Groups Links
a To visit your group on the web, go to:
b To unsubscribe from this group, send an email to:
@yahoogroups.com
c Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
Yahoo! Groups Links
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*To visit your group on the web, go to:
<*To unsubscribe from this group, send an email to:
@yahoogroups.com
<*Your use of Yahoo! Groups is subject to: