944,098 Members | Top Members by Rank

Ad:
Nov 1st, 2009
0

daysbetween function

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Vdub.za is offline Offline
11 posts
since Oct 2009
Nov 1st, 2009
0
Re: daysbetween function
hi
nevermind hopefully figured it out on my own without using daysbetween.

thanx
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Vdub.za is offline Offline
11 posts
since Oct 2009
Nov 10th, 2009
0
Re: daysbetween function
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!
Reputation Points: 12
Solved Threads: 5
Junior Poster in Training
BitFarmer is offline Offline
51 posts
since Nov 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Pascal and Delphi Forum Timeline: Tform1.print Save
Next Thread in Pascal and Delphi Forum Timeline: How to open MS Word from Delphi





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC