home *** CD-ROM | disk | FTP | other *** search
- { Demos the use of TDBLookupCombo and TDBLookupList. DBLookupCombo1
- presents a pick list of customer numbers from the customer
- table. Both DBLookupList and DBLookupCombo2 use the LookupDisplay
- property to convert customer numbers to company names in
- their pick lists. }
- unit Main;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, DBGrids, DB, DBTables, StdCtrls, Grids, DBLookup, ExtCtrls;
-
- type
- TForm1 = class(TForm)
- Panel1: TPanel;
- DBLookupCombo1: TDBLookupCombo;
- DBLookupCombo2: TDBLookupCombo;
- Label1: TLabel;
- Label2: TLabel;
- DBLookupList2: TDBLookupList;
- Orders: TTable;
- OrdersSource: TDataSource;
- DBGrid1: TDBGrid;
- OrdersOrderNo: TFloatField;
- OrdersCustNo: TFloatField;
- OrdersItemsTotal: TCurrencyField;
- Cust: TTable;
- CustSource: TDataSource;
- OrdersPaymentMethod: TStringField;
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- end.
-