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

  1. program TblProte;
  2. uses PXEngine;
  3.  
  4. const TableName = 'Table';
  5.       Password  = 'Password';
  6.  
  7. var   PxErr: Integer;
  8.       Protected: Boolean;
  9. begin
  10.     PX(PXInit);
  11.  
  12.     (* See if table is protected *)
  13.     PxErr := PXTblProtected(TableName, Protected);
  14.     if PxErr <> PxSuccess then
  15.       Writeln(PxErrMsg(PxErr))
  16.     else if Protected then
  17.            Writeln('Table is protected')
  18.          else Writeln('Table is not protected');
  19.  
  20.     PX(PXExit);
  21. end.
  22.