Applies to
TQDB, TQDBItem, TQDBView
Declaration
property Password : TPassword;
Description
Setting the Password property causes the QDB file to be encrypted when next closed. An encrypted file can only be opened if the appropriate Password is set (just) before assigning the FileName, e.g.:
Q.PassWord:='tripe';
Q.FileName:='trash.qdb';
If the wrong Password is given an EQDBInvalidPW exception is raised.
N.B. When a file is closed (i.e., FileName is set to '') Password is also cleared to increase security.
See also: OnDemandPassword
Run-time only