date/time limit (trial)

date/time limit (trial)

Postby Nop » Mon May 21, 2007 4:05 pm

HI, someone has an sample of time/date limit of use, like trial version? thanks
User avatar
Nop
 
Posts: 107
Joined: Tue Apr 11, 2006 4:36 pm
Location: Uberaba/Brazil

Re: date/time limit (trial)

Postby Enrico Maria Giordano » Mon May 21, 2007 5:32 pm

Something like this?

Code: Select all  Expand view
IF DATE() > CTOD( "XX/YY/ZZZZ" )
    // Expired
    RETURN NIL
ENDIF


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Nop » Mon May 21, 2007 5:38 pm

Enrico, yes, but after expired, write in windows registry or create an file , to not execute again.
User avatar
Nop
 
Posts: 107
Joined: Tue Apr 11, 2006 4:36 pm
Location: Uberaba/Brazil

Postby Enrico Maria Giordano » Mon May 21, 2007 5:43 pm

What is the problem?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Nop » Mon May 21, 2007 5:58 pm

Enrico, after expired date, i need save it , using windows registry or an file... i need an sample, you have?
User avatar
Nop
 
Posts: 107
Joined: Tue Apr 11, 2006 4:36 pm
Location: Uberaba/Brazil

Postby Enrico Maria Giordano » Mon May 21, 2007 6:01 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 52 guests