Advantage TDataSet Descendant
Determines whether encryption is enabled.
function AdsIsEncryptionEnabled : boolean;
This function returns True if encryption is enabled on this dataset. False is returned if encryption has not been enabled. When encryption is enabled, updated records will be written to the table in encrypted format.
{ This example decrypts the first record in the table }
AdsTable1.First;
If AdsTable1.AdsIsEncryptionEnabled Then
AdsTable1.AdsDecryptRecord;