TTdbTable.Password
TTdbTable
Top 


Specifies the password used to open the table.

property Password: string;

Description

Set Password before opening a protected table. If the table is encrypted you must also set Key. If Password or Key have the wrong value, the database component issues an OnPassword event. If there is no event handler defined, the table won't open and an ETurboDBError exception is raised.

When you create or alter a table the current value of Password is used to protect the table.