program TblEncry;
uses PXEngine, WinCrt;

const TableName = 'Table';
      Password  = 'Password';

var   PxErr: Integer;

procedure PX(Code : integer);
begin
  writeln(PXErrMsg(Code));
end;

begin
  PX(PXWinInit('MyApp', pxShared));

  (* Encrypt table with password *)
  PxErr := PXTblEncrypt(TableName, Password);
  if PxErr <> PxSuccess then
    Writeln(PxErrMsg(PxErr));

  PX(PXExit);
end.
