Курсовая работа: Создание базы данных "Wc3 Cybersport Data Base"
else Normalize(DbGrid1,datasource4);
StatusBar1.SimpleText:='Completed...';
Button4.Enabled:=true;
report1.enabled:=true;
end;
procedure TForm1.RichEdit1Change(Sender: TObject);
var
s,d:string;
x:integer;
Kur:TPoint;
begin
richedit1.SelAttributes.Color:=clblack;
//------------ Making Graphic Design -------------
kur:=Richedit1.CaretPos;
d:=Richedit1.Text;
d:=Lowercase(d);
For x:=1 to length(d) do begin
If (d[x]=' ') or (d[x]='(')or (d[x]=#10) or (ord(d[x])=13) then begin
If (s='from') or (s='where') or (s='group')
or (s='by') or (s='having') or (s='order')
or (s='select') or (s='as') or (s='like')
or (s='update') or (s='set') or (s='sum')
or (s='avg') or (s='max') or (s='min')
or (s='count') then
begin
richedit1.SelStart:=x-length(s)-1;
richedit1.SelLength:=length(s);
richedit1.SelAttributes.Color:=clNavy;
end;