>Hi everybody, > >I don't know how code my application to expire on certain time period. >Does any of you develop something like that and want to share the code me? >I will appreciate it. > Set up a global in your program to record the date/time of compile and then add the time out period. This global should be part of your stored preferences. LONG IF SYSTEM(_aplFlag) = _False gTimeOut& = [_time]+30*24*60*60 REM now + 30 days, 24 hours, 60 min, 60 secs END IF (NOTE: If this is a non-timed out version, set the global to zero.) During your init phase check this global and, if necessary, set your program to close. LONG IF gTimeOut& LONG IF [_time] > gTimeOut& gKissOfDeath = _zTrue END IF END IF Yo quiero Taco Bell. -STAZ ~)~ -------------------------------------------------------------- STAZ Software * 4387 Leisure Time Dr * Diamondhead, MS 39525 -------------------------------------------------------------- Orders: 800-348-2623 EMail http: //www.stazsoftware.com Tech: 228-255-7085 FAX: 228-255-7086 --------------------------------------------------------------