TAdsTable/TAdsQuery.AdsIsRecordEncrypted

Advantage TDataSet Descendant

Returns the encrypted status of the current record.

Syntax

function AdsIsRecordEncrypted (ulRecNum : Longint) : boolean;

Parameter

ulRecNum

Physical record number to check if encrypted, or 0 for active record.

Description

AdsIsRecordEncrypted will return True if the given record is encrypted. It will return False if the record is not encrypted.

Example

AdsTable1.FindKey( [‘Smith’] );

if ( AdsTable1.AdsIsRecordEncrypted( 0 ) ) then

AdsTable1.AdsEnableEncryption( 'secret' );

See Also

AdsDisableEncryption

AdsEnableEncryption

AdsDecryptRecord

AdsEncryptRecord