Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Protection Plus for Clipper - <u>pp_advect()</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PP_ADVECT()
Increment the execution-limit counter
------------------------------------------------------------------------------

Syntax
  PP_ADVECT()  .  lStatus

Returns
  .T. if successful, else .F.

Description
  Increments the execution counter by one.  The execution counter
  is stored in the control file.  The execution counter should be
  incremented once just before the main menu of your application
  is executed for the first time.  That way, if password protection
  is used and the user types in the wrong password and the
  program exits, he won't miss out on an execution.

Example

The first thing to do is right before the main menu is accessed for
the first time, the execution counter should be incremented if the
expire type is set to execution limit.  EXE_LIMIT is a logical defined
in the beginning of the program that is .T. of the expiration type is
"E" for EXE limit.  We only need to advance the counter if the EXE
counter limiting is used

if exe_limit
    pp_advect()
endif

See Also: PP_EXECT() PP_EXELM() PP_NEXECT() PP_NEXELM() PP_NEXPTYPE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson