Курсовая работа: Создание базы данных "Wc3 Cybersport Data Base"
For x:=0 to listbox1.Items.Count-1 do begin
If Listbox1.Selected[x] then Listbox1.Items.Strings[x]:=Edit1.Text;
end;
NewQuery(Edit1.Text,richedit1,0);
end;
3 : Begin
For x:=0 to listbox1.Items.Count-1 do begin
If Listbox1.Selected[x] then begin
Del := Listbox1.items.Strings[x];
Listbox1.DeleteSelected;
Goto 1;
end;
end;
1: NewQuery(Del,richedit1,1);
end;
end;
end;
procedure TForm1.PageControl1Change(Sender: TObject);
begin
If Pagecontrol1.ActivePage=TabSheet1 then DBNavigator1.DataSource:=DataSource1;
If Pagecontrol1.ActivePage=TabSheet2 then DBNavigator1.DataSource:=DataSource2;
If Pagecontrol1.ActivePage=TabSheet3 then DBNavigator1.DataSource:=DataSource3;
If Pagecontrol1.ActivePage=TabSheet4 then DBNavigator1.DataSource:=DataSource4;
end;
procedure TForm1.FormCreate(Sender: TObject);
var
F2:TextFile;
i,x:integer;
s:string;