home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a006 / 1.ddi / PASEXAM.ZIP / TBLDECRY.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1991-03-11  |  400 b   |  21 lines

  1. program TblDecry;
  2. uses PXEngine;
  3.  
  4. const TableName = 'Table';
  5.       NetDir    = '\PARADOX3';
  6.       Password  = 'Password';
  7.  
  8. var   PxErr: Integer;
  9.  
  10. begin
  11.   PX(PXNetInit(NetDir, NotOnNet, DefUserName));
  12.   PX(PXPswAdd(Password));
  13.  
  14.   (* Attempt to decrypt the table *)
  15.   PxErr := PXTblDecrypt(TableName);
  16.   if PxErr <> PxSuccess then
  17.     Writeln(PxErrMsg(PxErr));
  18.  
  19.   PX(PXExit);
  20. end.
  21.