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.


Now a "smart" question!!!!


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-26-2008, 08:51 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,316
Default Now a "smart" question!!!!

OK, so i'm back to coding a few hours instead of a few minutes from time to time....
I'm a bit Rusted, so I have already made some "stupid" question, wich EREL kindly answeared me...
But now a "smart" question....

I need to set in an ini file 2 times to fire an alert...but the user has the option of setting only one of the time variables...
How do i make the code ignore the empty time vatriable when cheking for the value, and thus make the time chek for that variable not to run...?
__________________
Paulo Gomes
Porto, Portugal

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

DLL Version Listing
Reply With Quote
  #2 (permalink)  
Old 01-28-2008, 12:34 AM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 154
Default

Paulo, what do you mean when you say that you must set an ini file 2 times? Do you mean that you want to fire the alert when the ini file is updated the second time, or that you want to fire the alert when both variables A and B are set and written to the ini file?

In short, what's the goal of this program?

Gary
Reply With Quote
  #3 (permalink)  
Old 01-28-2008, 01:04 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,316
Default

You understood me wrong...
I'm writing an "alerter" for my company, and storing in the ini file the times that alert should take place...
My problem is that the user may define only one alert, thus making the second one, not meant to run....How do I prevent it, since the conde that will be using the values is the same....??
__________________
Paulo Gomes
Porto, Portugal

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

DLL Version Listing
Reply With Quote
  #4 (permalink)  
Old 01-28-2008, 02:23 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 154
Default

I'm thinking that you should just store a default time value in those cases where the user leaves it blank or does not enter it; then ignore that particular value when checking whether or not to show the alert.

Which, of course, is an absudly simple answer. Which means I probably still don't fully understand the problem.

Can you post any part of the code?


Gary
Reply With Quote
  #5 (permalink)  
Old 01-29-2008, 08:03 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,316
Default

I've not yet got to that part of my codding, t although simp,your suggestion might work, because I HAVE to test the time value (the user entry with the NOW time), and fire the alert if both are the same...so Adding a condition to do nothing is a possability...
Thanks...
__________________
Paulo Gomes
Porto, Portugal

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

DLL Version Listing
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
"AddEvent" and "buttonUp/buttonDown" Byak@ Questions & Help Needed 12 09-10-2008 04:04 PM
Is there any thing like Visual Basic "Tabbed dialog control" in Basic4ppc? mozaharul Questions & Help Needed 6 03-23-2008 12:07 PM
Image Button kommt nicht wieder "hoch" troll German Forum 3 02-22-2008 10:03 AM
calling the device's "Programs" or "settings" screens HarleyM Questions & Help Needed 0 12-05-2007 03:59 AM
Another "Stupid" question!!! Cableguy Questions & Help Needed 2 06-28-2007 05:15 PM


All times are GMT. The time now is 03:38 AM.


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