532______________________________________________ S

 KeyValues    :  -
   ,     ,   
,      .     (
         . ;

 KeyValues_Size      , 
 .     0,  KeyValues_Size   MI
  ,   .

 FindKey       ;

 FindNearest,      '
    .      ;

,     FindKey.  FindNearest     
.         ,    K(
      .

  FindKey  FindNearest    OPENARRAY
       :

OPENARRAY(TVarRec,( ))

 OPENARRAY   ,   19 '
,  .

 .         
   .        ;:

Tablel->IndexFieldNames = "Fam";

Tablel->FindNearest(STVarRec(EFam->Text),0) ;

     ,     
     ,     '
,      EDep,    '
    OPENARRAY  :

Tablel->IndexFieldNames = "Dep;Fam";

Tablel->FindNearest(OPENARRAY(TVarRe,(EDep->Text,EFam->Text))) ;

      Dep  Fam,   
   . ,       
 .     .

   .      -
  .       EFam  
        , 
     .     -
    Fam.      OnChange 
 EFam  

Tablel->FindNearest(STVarRec(EFam->Text),0) ;

    Locate.     -
:

bool   fastcall Locate(const System::AnsiString KeyFields,

const System::Variant &KeyValues, TLocateOptions Options);

    KeyFields  ,  -
  .      KeyValues  -
  .    Options   ,
    loCaselnsensitive    
,    ,  loPartialKey   
.   false,     .

    Locate    
       -