Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Time question


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-04-2008, 08:18 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,138
Default Time question

I'm satrting a program to run under win32 (win-xp), wich main goal is to keep track on teh day due to delivery of packag orders...
The user will incert the due date and I want to give the user an alert 2 days past the due date, 2twice a day...everyday untill the package arrives...

the alerts are to be done once in the mornig, say 10am, and once in the afternoon, say 4pm...

I know you'll probabli say to calculate the time beetwhenn date and the count the elapsed time...But it's a corporate enviroment, so the computers are shutdown in the weekend...so the counting would be lost, or inacurate...

Wat I want is a way to compare the system time to a givem time, established by the user, as a variable...

How??
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 07:00 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,849
Default

Something like:
Code:
DueDate = DateParse(TextBox1.Text)

Sub Timer1_Tick
 if now > DueDate then msgbox("Time is up")
End Sub
The date and time tutorial may help you: Date and Time
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 10:49 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,138
Default

Thanks Erel...
Late at Night i found a way to make it work...the time bit that is...
Now with your hint about the date...
I'm on track...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mars Time alfcen Share Your Creations 4 05-12-2008 11:21 AM
Adding time Sascha K. Questions & Help Needed 3 03-23-2008 07:46 PM
Date and Time Erel Tutorials 0 09-24-2007 09:05 AM
.NET 3.0 and 3.5 / Time Zone alfcen Questions & Help Needed 3 08-23-2007 05:58 PM


All times are GMT. The time now is 01:21 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0