home *** CD-ROM | disk | FTP | other *** search
/ Delphi Programming Unleashed / Delphi_Programming_Unleashed_SAMS_Publishing_1995.iso / misc / lkupcomb / main.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1995-03-21  |  974 b   |  52 lines

  1. unit Main;
  2.  
  3. { Program copyright (c) 1995 by Charles Calvert }
  4. { Project Name: LKUPCOMB }
  5.  
  6. { The dbListBoxLookUp appears to be a sort of
  7.   one to many in reverse. I'm not sure exactly
  8.   why they've included it. }
  9.  
  10. interface
  11.  
  12. uses
  13.   SysUtils, WinTypes, WinProcs,
  14.   Messages, Classes, Graphics,
  15.   Controls, StdCtrls, Forms,
  16.   DBCtrls, DB, DBGrids,
  17.   DBLookup, DBTables, Grids,
  18.   Mask, ExtCtrls;
  19.  
  20. type
  21.   TLookUp = class(TForm)
  22.     DBGrid1: TDBGrid;
  23.     DBNavigator: TDBNavigator;
  24.     Panel1: TPanel;
  25.     Panel2: TPanel;
  26.     DataSource1: TDataSource;
  27.     Table1: TTable;
  28.     Table2: TTable;
  29.     DataSource2: TDataSource;
  30.     DBLookupList1: TDBLookupList;
  31.     procedure FormCreate(Sender: TObject);
  32.   private
  33.     { private declarations }
  34.   public
  35.     { public declarations }
  36.   end;
  37.  
  38. var
  39.   LookUp: TLookUp;
  40.  
  41. implementation
  42.  
  43. {$R *.DFM}
  44.  
  45. procedure TLookUp.FormCreate(Sender: TObject);
  46. begin
  47.   Table1.Open;
  48.   Table2.Open;
  49. end;
  50.  
  51. end.
  52.