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

  1. program TblEncry;
  2. uses PXEngine;
  3.  
  4. const TableName = 'Table';
  5.       Password  = 'Password';
  6.  
  7. var   PxErr: Integer;
  8.  
  9. begin
  10.   PX(PXInit);
  11.  
  12.   (* Encrypt table with password *)
  13.   PxErr := PXTblEncrypt(TableName, Password);
  14.   if PxErr <> PxSuccess then
  15.     Writeln(PxErrMsg(PxErr));
  16.  
  17.   PX(PXExit);
  18. end.
  19.