IsEncrypted

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods >

IsEncrypted

Declaration

function IsEncrypted( iFileOrRec: Integer ): WordBool;

Description

Determines whether the current record or file is encrypted.

Parameters

iFileOrRec: If 0 is passed, the return is for the file. If 1 is passed, the return is for the current record.

Return Value

True if the file or record is encrypted.

Delphi Example

// See if the file is encrypted 

if ApTbl.IsEncrypted( 0 ) then

 ApTbl.SetPassWord( 'pIcKwIcK' ); 

C++Builder Example

// See if the file is encrypted

if (ApTbl->IsEncrypted( 0 ) )

 ApTbl->SetPassWord( "pIcKwIcK" ); 

See Also

DbfDecrypt, DbfEncrypt, SetPassWord