Advantage TDataSet Descendant
Returns the encrypted status of the specified dataset.
function AdsIsTableEncrypted : boolean;
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.
AdsTable1.Active := TRUE;
if ( AdsTable1.AdsIsTableEncrypted ) then
AdsTable1.AdsEnableEncryption( 'secret' );