Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) 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: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
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 - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 07:00 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,732
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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: http://www.basic4ppc.com/forum/tutorials/894-date-time.html
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: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
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 - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
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 Off
Pingbacks are Off
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
Add & Subtract Time cdeane Questions (Windows Mobile) 11 11-28-2007 08:24 AM
Time Zone alfcen Basic4ppc Wishlist 8 10-05-2007 05:47 AM
Load time BPak Questions (Windows Mobile) 3 08-28-2007 03:27 AM
.NET 3.0 and 3.5 / Time Zone alfcen Questions (Windows Mobile) 3 08-23-2007 05:58 PM


All times are GMT. The time now is 06:27 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0