528______________________________________________ 9

  OnCloseQuery   :

if (Tablel->CachedUpdates && modif)

switch (Appiication->MessageBox("    ?",
" ",
MB_YESNOCANCEL + MB_ICONQUEST.ION) )

{

case IDYES:    Tablel->ApplyUpdates(); break;

case IDCANCEL: CanClose = false; break;

case IDNO:     Tablel->CancelUpdates();

1

        -
    ?.     -
  ApplyUpdates.      -
 CancelUpdates.       
Cancel,     (CanClose   false).

      ,   -
       .

9.11.4   

    TField     
TStringField, TSmallintField, TBooleanField  ..    
 :

        (Tab-
le  .)

        

      

    TField    
  ,       :  -
          -
.       (   
  ).

        
   .     '
.  ,  ,       
 ,   .   ,
  ,  ,       
     .

    TField  
      .

      :

    

   

   

       TField* Fi-
elds[int i],  i   . ,    C++Builder, -
  0. , Tablel->Fields[0]       Tablel.

        FieldByNa-
(""). , Tablel->FieldByName("Fam")   ,  
 Fam.

       ,   
 .   C++Builder    
(Name)      . , TablelDep.   