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_chkpp()</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PP_CHKPP()
Verify the integrity of the control file
------------------------------------------------------------------------------

Syntax
  PP_CHKPP()  .  lStatus

Returns
  .T. if successful, else .F.

Description
  Checks the validity of the control file.  It is possible, however,
  for this function to return a .T. for "file okay" when the data is
  garbaged.  This function call should be placed at the beginning
  of your application, if even desired at all.

  NOTE:  All functions in the PROTECTION PLUS library that
  depend on the control file call PP_CHKPP() to verify that
  control file is sound.  If this function returns a false, the
  function called will return either the "worst case" value or an
  error value.  For example, if PP_EXPIRED() is run and
  PP_CHKPP() failed during the execution, PP_EXPIRED() will
  return .T., to keep the program from running.

Example

if !pp_chkpp()
    ?? "Error with application datafile"
    ?
    cancel
endif

See Also: PP_CRPPP() PP_SAVEPP()

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