FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour date/time limit (trial)
Posts: 107
Joined: Tue Apr 11, 2006 04:36 PM
date/time limit (trial)
Posted: Mon May 21, 2007 04:05 PM

HI, someone has an sample of time/date limit of use, like trial version? thanks

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: date/time limit (trial)
Posted: Mon May 21, 2007 05:32 PM
Something like this?

IF DATE() > CTOD( "XX/YY/ZZZZ" )
    // Expired
    RETURN NIL
ENDIF


EMG
Posts: 107
Joined: Tue Apr 11, 2006 04:36 PM
date/time limit (trial)
Posted: Mon May 21, 2007 05:38 PM

Enrico, yes, but after expired, write in windows registry or create an file , to not execute again.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
date/time limit (trial)
Posted: Mon May 21, 2007 05:43 PM

What is the problem?

EMG

Posts: 107
Joined: Tue Apr 11, 2006 04:36 PM
date/time limit (trial)
Posted: Mon May 21, 2007 05:58 PM

Enrico, after expired date, i need save it , using windows registry or an file... i need an sample, you have?

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
date/time limit (trial)
Posted: Mon May 21, 2007 06:01 PM

You can use MEMOWRIT() or FCREATE() to create files. I don't recommend to write in the registry.

EMG

Continue the discussion