      _______________525

 Insert  InsertRecord       ,
   ,        C++Buil-
der,   State   dslnsert.

 EditKey, SetRange, SetRangeStart, SetRangeEnd  ApplyRange, -
          ,
 State   dsSetKey.     .

       -
  .         
,         . -
,     ,    
   dsEdit  Edit,     EData-
baseError   Dataset not in edit or insert mode      -
 Edit  Insert.

9.11.2     

    ,    -
,      .       -
    Post.     , 
     dsEdit  dslnsert.    -
 , , Tablel->Post().        -
    , ..      -
 ,       dsEdit  dslnsert. -
 ,   ,   Cancel.  
 ,       Post,  
 ,  ,     
 dsBrowse.

    ,   Post    
  .        
-  ,    ,     -
  -  .   ,  
           -
.   ,     Table.

         
       Table.
,    Post   BeforePost,  
    AfterPost.   Beforelnsert  Afte-
rinsert    Insert  ..    
         .

        -
 BeforePost.      :

void   fastcall TFormI::TablelBeforePost(TDataSet *DataSet)

if (  )
{

if (Application->MessageBox(

"      ?",
"    ",
MB_YESNOCANCEL + MB_ICONQUESTION) != IDYES)
(

DataSet->Cancel ();

Abort();