Software
Java
JavaScript
Delphi
HomeDelphi

Adding An Expiration Date To An Application

Click to select the code.  Use Control-C to copy it to your clipboard. Help

Comments

SysUtils includes a function called EncodeDate which makes it simple to compare dates.  In this example we use the native Date function to get the current system date, and then compare it to a reference date set with the variables TheYear, TheMonth, and TheDate.  If the current date is greater then the reference date, then we close the application.

In practice, you'd probably disable various buttons or other controls in the application to limit functionality, rather than close the application; as you'd most likely want to provide a means for the application user to register or purchase the product.

FLASH! BANG! The action just never ends. You want your site to look great? You want it to stand out from the crowd? You want it to be free of smelly foot odor? Then you MUST MUST MUST have... Go here: FlashBanger's!

.

Copyright 2001 - 2012 by CodeFoot.com and OECCorp.
The 2012 Evolution™


LegalPrivacyCodeFoot.com is an OEC InterNET Group site.SupportNotices
CodeBrain.com BrainCode.com CodeFoot.com CodeBelly.com CodeLifter.com
PopUpWorks.com Droiddd.com etLux.com OECCorp.com
TrayApps.com DavidSosnowski.com MicroTicker.com