TAdsTable/TAdsQuery.AdsIsTableEncrypted

Advantage TDataSet Descendant

Returns the encrypted status of the specified dataset.

Syntax

function AdsIsTableEncrypted : boolean;

Description

Returns True if the header of the table indicates that the dataset is encrypted; otherwise, returns False. Note that this function will return False even if all the records in the dataset are encrypted, but AdsEncryptTable was not previously used to "encrypt" the table header.

Example

AdsTable1.Active := TRUE;

if ( AdsTable1.AdsIsTableEncrypted ) then

AdsTable1.AdsEnableEncryption( 'secret' );

See Also

AdsDisableEncryption

AdsEnableEncryption

AdsEncryptTable

AdsDecryptTable