home *** CD-ROM | disk | FTP | other *** search
- program PswAdd;
- 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
- begin
- (* Submit password to system if table protected *)
- PxErr := PXPswAdd(Password);
- if PxErr <> PxSuccess
- then Writeln(PxErrMsg(PxErr));
- end;
-
- PX(PXExit);
- end.