home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
clarion
/
tools
/
cripple
/
govern.doc
Wrap
Text File
|
1991-11-30
|
2KB
|
57 lines
------------------------------------------------------------
CREATING A FULLY FUNCTIONAL "CRIPPLED" DEMO OF YOUR PROGRAM
------------------------------------------------------------
If you use the "GOVERN" procedure below as the SETUP and/or SHUTDOWN()
procedure in your program, substituting your own file label(s) for
'DataFil1' and 'Datafil2', and specifying your own record quantity
limit as the parameter of the local variable 'ibLimit', you can can
create a fully functional "demo" copy of your working application.
Place a message something like "Demo Copy - Limited to 5 records
per file" and your Company name and phone number conspicuously on
the main menu screen of your program. Each time the user starts
and/or exits the program, all records created above the specified limit
will be automatically deleted. If you wish to distribute "Trial"
copies of your software, you may do so using this method, and then
simply send a patch disk (patch utilites supported by Clarion are
available commercially) specific to that particular copy (via an
embedded serial number, etc.) which removes the "GOVERN" procedure, to
update your EXE file when/if the user remits full payment.
MEMBER()
GOVERN PROCEDURE
ibLimit Byte(5)
CODE
IF RECORDS(DataFil1) > ibLimit
SET(DataFil1)
SKIP(DataFil1,ibLimit)
LOOP WHILE NOT EOF(DataFil1)
NEXT(DataFil1)
IF NOT ERRORCODE()
DELETE(DataFil1)
END
END
IF RECORDS(DataFil2) > ibLimit
SET(DataFil2)
SKIP(DataFil2,ibLimit)
LOOP WHILE NOT EOF(DataFil2)
NEXT(DataFil2)
IF NOT ERRORCODE()
DELETE(DataFil2)
END
END
RETURN
**************************************
Submitted by:
JAMES PORTANOVA
HOT PROPERTIES SOFTWARE
Post Office Box 437
Fresh Meadows, New York 11365-0437
10/14/91