freelanceprogrammers.org Forum Index » Visual Basic
Re: Creating an alarm Procedure
Joined: 29 Apr 2005
Posts: 1
Re: Creating an alarm Procedure
Well this is a rather cheap method to do such a project, and it really is NOT a
programatic way of doing it... but it uses alot less system resources than a
timer app.... so with that being said....
Windows itself has a rather nice `scheduled task` app. if i was in your
position, i would write an application as follows
sub main()
select case command$
case "task1"
dowhateverfortask1
case "task2"
dowhateverfortask2
case "task3"
dowhateverfortask3
end select
end
end sub
then goto the scheduled task wizard, and set it to run your compiled exe, and
pass it the command line... such as
9am
execute "myalarms.exe beatwork"
11:59am
execute "myalarms.exe get some lunch"
5pm
execute "myalarms.exe getthehellhome"
Jean-Pierre Jamous <jpjamous@...> wrote:
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?
Obviously 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
To visit your group on the web, go to:
http://groups.yahoo.com/group/VBBeginners/
To unsubscribe from this group, send an email to:
VBBeginners-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







