Page 1 of 1

date/time limit (trial)

PostPosted: Mon May 21, 2007 4:05 pm
by Nop
HI, someone has an sample of time/date limit of use, like trial version? thanks

Re: date/time limit (trial)

PostPosted: Mon May 21, 2007 5:32 pm
by Enrico Maria Giordano
Something like this?

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


EMG

PostPosted: Mon May 21, 2007 5:38 pm
by Nop
Enrico, yes, but after expired, write in windows registry or create an file , to not execute again.

PostPosted: Mon May 21, 2007 5:43 pm
by Enrico Maria Giordano
What is the problem?

EMG

PostPosted: Mon May 21, 2007 5:58 pm
by Nop
Enrico, after expired date, i need save it , using windows registry or an file... i need an sample, you have?

PostPosted: Mon May 21, 2007 6:01 pm
by Enrico Maria Giordano
You can use MEMOWRIT() or FCREATE() to create files. I don't recommend to write in the registry.

EMG