home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April / Chip_1997-04_cd.bin / prezent / cb / data.z / ERRFORM.H < prev    next >
C/C++ Source or Header  |  1997-01-16  |  2KB  |  44 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++ Builder
  3. //Copyright (c) 1987 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef errformH
  7. #define errformH
  8. //---------------------------------------------------------------------------
  9. #include <vcl\Classes.hpp>
  10. #include <vcl\Controls.hpp>
  11. #include <vcl\StdCtrls.hpp>
  12. #include <vcl\Forms.hpp>
  13. #include <vcl\Grids.hpp>
  14. #include <vcl\System.hpp>
  15. //---------------------------------------------------------------------------
  16. class TUpdateErrorForm : public TForm
  17. {
  18. __published:    // IDE-managed Components 
  19.     TLabel *Label1;
  20.     TLabel *UpdateType;
  21.     TLabel *Label3;
  22.     TLabel *ErrorText;
  23.     TStringGrid *UpdateData;
  24.     TButton *RetryButton;
  25.     TButton *SkipButton;
  26.     TButton *AbortButton;
  27.     void __fastcall FormDestroy(TObject *Sender);
  28.     void __fastcall UpdateDataSetEditText(TObject *Sender, long ACol,
  29.       long ARow, const AnsiString Value);
  30.     void __fastcall FormCreate(TObject *Sender);
  31. private:        // User declarations
  32.     TStringList *FDataFields;
  33.     void __fastcall GetFieldValues(TDataSet *DataSet);
  34.     void __fastcall SetFieldValues(TDataSet *DataSet);
  35. public:         // User declarations
  36.     virtual __fastcall TUpdateErrorForm(TComponent* Owner);
  37.     TUpdateAction __fastcall HandleError(TDataSet *DataSet, EDatabaseError *E,
  38.       TUpdateKind UpdateKind);
  39. };
  40. //---------------------------------------------------------------------------
  41. extern TUpdateErrorForm *UpdateErrorForm;
  42. //---------------------------------------------------------------------------
  43. #endif
  44.