Курсовая работа: Создание базы данных "Wc3 Cybersport Data Base"
AdoTable1.Active:=true;
AdoTable2.Active:=true;
AdoTable3.Active:=true;
// ----------- Normalizing Column Width of DBGrid -----------
Normalize(players,datasource1);
Normalize(clans,datasource2);
Normalize(events,datasource3);
ini := TiniFile.Create(extractfilepath(application.ExeName)+'Queryes.ini');
AssignFile(F2,Extractfilepath(Application.ExeName)+'QueryList.lst');
reset(F2);
Repeat
Readln(F2,s);
Listbox1.Items.Add(s);
until EOF(F2);
closefile(F2);
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.Button1Click(Sender: TObject);
var
x :integer;
begin
statusbar1.SimpleText:='Adding new Query...';
Edit1.Text:='';
Richedit1.Text:='';
Button2.Caption:='Add';
for x:=125 to form1.Width+120 do begin