home *** CD-ROM | disk | FTP | other *** search
- object MainForm: TMainForm
- Left = 236
- Top = 99
- AutoScroll = False
- Width = 435
- Height = 301
- ActiveControl = Grid
- Caption = 'SQL Insert & Delete Demo'
- Font.Color = clBlack
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- PixelsPerInch = 96
- TextHeight = 13
- object Grid: TDBGrid
- Left = 0
- Top = 55
- Width = 427
- Height = 219
- Align = alClient
- BorderStyle = bsNone
- DataSource = DataSource1
- TabOrder = 0
- TitleFont.Color = clBlack
- TitleFont.Height = -11
- TitleFont.Name = 'MS Sans Serif'
- TitleFont.Style = []
- end
- object Panel1: TPanel
- Left = 0
- Top = 0
- Width = 427
- Height = 55
- Align = alTop
- TabOrder = 1
- object Insert: TButton
- Left = 12
- Top = 12
- Width = 61
- Height = 33
- Caption = 'Insert'
- Default = True
- TabOrder = 0
- OnClick = InsertClick
- end
- object Delete: TButton
- Left = 82
- Top = 12
- Width = 57
- Height = 33
- Caption = 'Delete'
- TabOrder = 1
- OnClick = DeleteClick
- end
- end
- object GridQuery: TQuery
- Active = True
- DatabaseName = 'DBDEMOS'
- SQL.Strings = (
- 'select * from country')
- Left = 152
- Top = 2
- end
- object DataSource1: TDataSource
- DataSet = GridQuery
- Left = 186
- Top = 2
- end
- object DeleteQuery: TQuery
- DatabaseName = 'DBDEMOS'
- SQL.Strings = (
- 'delete from Country'
- 'where Name = :Name')
- Params.Data = {01000100044E616D6500000000}
- Left = 234
- Top = 4
- end
- end
-