home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Info / TeachU14 / SAMS / Code / Day12 / dbqueryu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-08  |  1.8 KB  |  59 lines

  1. //---------------------------------------------------------------------------
  2. #ifndef DbQueryUH
  3. #define DbQueryUH
  4. //---------------------------------------------------------------------------
  5. #include <vcl\Classes.hpp>
  6. #include <vcl\Controls.hpp>
  7. #include <vcl\StdCtrls.hpp>
  8. #include <vcl\Forms.hpp>
  9. #include <vcl\Db.hpp>
  10. #include <vcl\DBGrids.hpp>
  11. #include <vcl\DBTables.hpp>
  12. #include <vcl\Grids.hpp>
  13. //---------------------------------------------------------------------------
  14. class TForm4 : public TForm
  15. {
  16. __published:    // IDE-managed Components
  17.   TLabel *Label1;
  18.   TLabel *Label2;
  19.   TLabel *Label3;
  20.   TLabel *Label4;
  21.   TComboBox *DBNamesComboBox;
  22.   TComboBox *TablesComboBox;
  23.   TDBGrid *DBGrid1;
  24.   TEdit *ValueEdit;
  25.   TButton *FilterBtn;
  26.   TDataSource *DataSource1;
  27.   TComboBox *FieldsComboBox;
  28.   TEdit *SQLEdit;
  29.   TLabel *Label5;
  30.   TButton *SQLBtn;
  31.   TDatabase *Database1;
  32.   TQuery *Query1;
  33.         TGroupBox *GroupBox1;
  34.         TLabel *Label6;
  35.         TLabel *Label7;
  36.         TEdit *UserNameEdit;
  37.         TEdit *PasswordEdit;
  38.   void __fastcall FormCreate(TObject *Sender);
  39.   void __fastcall DBNamesComboBoxChange(TObject *Sender);
  40.   void __fastcall TablesComboBoxChange(TObject *Sender);
  41.   
  42.   
  43.   void __fastcall SQLBtnClick(TObject *Sender);
  44.   void __fastcall FilterBtnClick(TObject *Sender);
  45.   
  46.   void __fastcall Database1Login(TDatabase *Database,
  47.       TStrings *LoginParams);
  48.   void __fastcall SQLEditKeyDown(TObject *Sender, WORD &Key,
  49.       TShiftState Shift);
  50.   
  51. private:    // User declarations
  52. public:        // User declarations
  53.   __fastcall TForm4(TComponent* Owner);
  54. };
  55. //---------------------------------------------------------------------------
  56. extern TForm4 *Form4;
  57. //---------------------------------------------------------------------------
  58. #endif
  59.