> >
> > There may be number of ways to do this.
> > one is this:
> > 1. Create a table and include that table in your project.
> > 2. When your project run check for expiry date if there is no record in the table then add one record with expiry date e.g. insert into tblName values(date() +15)
> >
> > If you found any record in your table then check for that date if date is greater than expiry date then close your application.
> > e.g.
> > if date() > tblName.ExpiryDt
> > Messagebox("Trial version expired")
> > close all
> > quit
> > endif
> >
> > and other option may be to write in registry and read that value.
> >
> >
> > -----------------------------------------------------------------------------------------------
> > Regards
> > Surinder Singh
> > Email:
sur200@indiatimes.com> > Check my blog for details:
http://weblogs.foxite.com/sur200> > ----------------------------------------------------------------------------------------
> > *If you understand what you're doing, then you're not learning anything.
>
> Hi,
> Thanx for your valuable reply.
> but as much i know... if a table include in a project it became readonly... Record insert is not possible.. is it so ?
>
> regards
> Anal Roy Chowdhury
> ---------------------
Create it programmatically:
IF !addbs(MyHiddenFileLocation)+"MyHiddenTableForDateExpiration.dbf"
* on cases like this, i suggest change the extension other than dbf
CREATE TABLE MyHiddenTableForDateExpiration (xpire d)
INSERT INTO MyHiddenTableForDateExpiration VALUES (date())
ENDIF
Jun Tangunan
"Get out of the past and look in the future."
http://weblogs.foxite.com/sandstorm36/