SetExact

<< Click to Display Table of Contents >>

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

SetExact

Declaration

procedure SetExact( const Value: WordBool );

Description

Indicates whether or not Seeks are to return True if a partial key match is made.

Parameters

If True, key searches made with Seek must match exactly in content and length. Partial key matches will result in False returns from Seek.

 

If False, the exact condition is turned off.

 

The SetExact setting is applied to all index seeks in the current task. It is global to the current task.

image\tip.gif If SetSoftSeek is set to True, the SetExact setting is disabled.

Delphi Example

ApolloEnv1.SetExact( True ); // key must match in content and length

if ApTbl.Seek( sKey ) then

 ApTbl.ApolloGetRecord( cpRec ) 

else

 ShowMessage( 'Key Not Found' ); 

ApolloEnv1.SetExact( False );

See Also

Exact, Seek, SetSoftSeek