Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Jun Tangunan
  Where is Jun Tangunan?
 Cabanatuan
 Philippines
 Jun Tangunan
 To: A Roy Chowdhury
  Where is A Roy Chowdhury?
 kolkata
 India
 A Roy Chowdhury
Subject: RE: Creating DEMO application
Thread ID: 182442 Message ID: 182496 # Views: 4 # Ratings: 1
Version: Visual FoxPro 9 Category: Projects and Design
Date: Wednesday, July 9, 2008 12:03:13 PM         
   



> >
> > 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/

ENTIRE THREAD

Creating DEMO application Posted by anal Roy Chowdhury @ 7/9/2008 7:58:00 AM
RE: Creating DEMO application Posted by surinder singh @ 7/9/2008 11:37:17 AM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/9/2008 11:52:57 AM
RE: Creating DEMO application Posted by Jun Tangunan @ 7/9/2008 12:03:13 PM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/9/2008 12:08:34 PM
RE: Creating DEMO application Posted by Jun Tangunan @ 7/9/2008 12:42:04 PM
RE: Creating DEMO application Posted by surinder singh @ 7/9/2008 12:51:44 PM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/10/2008 6:52:16 AM
RE: Creating DEMO application Posted by surinder singh @ 7/10/2008 7:12:09 AM
RE: Creating DEMO application Posted by Boudewijn Lutgerink @ 7/14/2008 9:58:06 AM
RE: Creating DEMO application Posted by Boudewijn Lutgerink @ 7/14/2008 9:51:24 AM
RE: Creating DEMO application Posted by Garth Groft @ 7/9/2008 8:00:44 PM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/10/2008 6:58:11 AM
RE: Creating DEMO application Posted by Eric den Doop @ 7/11/2008 12:12:59 AM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/11/2008 11:03:23 AM
RE: Creating DEMO application Posted by Bernard Bout @ 7/15/2008 7:46:04 AM
RE: Creating DEMO application Posted by Boudewijn Lutgerink @ 7/15/2008 3:19:00 PM
RE: Creating DEMO application Posted by Bernard Bout @ 7/16/2008 8:03:56 AM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/16/2008 8:48:11 AM
RE: Creating DEMO application Posted by Jun Tangunan @ 7/16/2008 9:55:57 AM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/16/2008 10:13:52 AM
RE: Creating DEMO application Posted by Bernard Bout @ 7/17/2008 6:20:45 AM
RE: Creating DEMO application Posted by Boudewijn Lutgerink @ 7/17/2008 4:12:34 PM
RE: Creating DEMO application Posted by Boudewijn Lutgerink @ 7/17/2008 4:14:27 PM