home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
windows
/
pdoxeng
/
tblencry.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-04-11
|
420b
|
24 lines
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.