daysbetween function

Thread Solved

Join Date: Oct 2009
Posts: 11
Reputation: Vdub.za is an unknown quantity at this point 
Solved Threads: 0
Vdub.za Vdub.za is offline Offline
Newbie Poster

daysbetween function

 
0
  #1
27 Days Ago
HI

I want to calculate the amount of days left between now and let's say 5 days from now using daysbetween. everytime i try to run my app, it says that daysbetween is a an undeclared identifier. i want to use this function to limit the length of time a client can use my application. basically a trial version the can try out for a couple of days before it locks up and require serial key to reactivate. usually made a monthly trial but want to go to weekly one. can anybody give me some tips on this.
Thanx again you guys are real life savers.

Regards
Vdub.za
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 11
Reputation: Vdub.za is an unknown quantity at this point 
Solved Threads: 0
Vdub.za Vdub.za is offline Offline
Newbie Poster
 
0
  #2
27 Days Ago
hi
nevermind hopefully figured it out on my own without using daysbetween.

thanx
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 40
Reputation: BitFarmer is an unknown quantity at this point 
Solved Threads: 3
BitFarmer BitFarmer is offline Offline
Light Poster
 
0
  #3
18 Days Ago
Just doing a "round(YourDate-now);" (both TDateTime or TDate) would do the work, but, you are supposing the user won't play with the system clock to fool your system!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Pascal and Delphi Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC