home *** CD-ROM | disk | FTP | other *** search
- program PswDel;
- uses PXEngine;
-
- const TableName = 'Table';
- NetDir = '';
- NetType = NotOnNet ;
- Password = 'Password';
-
- var PxErr: Integer;
- Protected: Boolean;
-
- begin
- PX(PXNetInit(NetDir, NotOnNet , DefUserName));
- PX(PXTblProtected(TableName, Protected));
-
- if Protected then
- PxErr := PXPswAdd(Password);
-
- (* Open encrypted table and when done with table, delete password
- from system, if necessary
- *)
- if Protected then
- begin
- PxErr := PXPswDel(Password);
- if PxErr <> PxSuccess then
- Writeln(PxErrMsg(PxErr));
- end;
-
- PX(PXExit);
- end.
-