Загрузка...

E2283 Too many local constants. Use shorter procedures Delphi

Тема в разделе "С/С++/Pascal/Delphi", создана пользователем weath, 28.01.2016.

  1. weath

    weath

    Статус:
    Оффлайн
    Регистрация:
    14.04.13
    Сообщения:
    226
    Репутация:
    90 +/-
    Пишу программу которая собирает определенные данные с разных сайтов появляется ошибка
    [dcc32 Error] Unit2.pas(8304): E2283 Too many local constants. Use shorter procedures, как можно ее исправить?
    Вот часть кода , таких строк 8000
    Код:
    if scombobox1.Itemindex=0 then begin
    smemo1.lines.add(' ');
    if scheckbox1.Checked=true then
    begin
    Http:=THTTPSend.Create;
    Html:=TStringList.Create;
    if Http.HTTPMethod('GET','ссылка1') then begin
    html.LoadFromStream(http.Document);
    html.Text:=utf8toansi(html.Text);
    a:=pars('                           <h2>',Html.Text,'</h2>');
    end;
    end;
     
    if scheckbox2.Checked=true then
    begin
    Http:=THTTPSend.Create;
    Html:=TStringList.Create;
    if Http.HTTPMethod('GET','ссылка2') then begin
    html.LoadFromStream(http.Document);
    html.Text:=utf8toansi(html.Text);
    b:=pars('</span> ',Html.Text,'</div>');
    end;
    end;
     
    if scheckbox3.Checked=true then
    begin
    Http:=THTTPSend.Create;
    Html:=TStringList.Create;
    if Http.HTTPMethod('GET','ссылка3') then begin
    html.LoadFromStream(http.Document);
    html.Text:=utf8toansi(html.Text);
    c:=pars('                                                                                        ',Html.Text,'<br>');
    d:=pars('                                                                                       ',Html.Text,'<br>');
    end;
    end;
    smemo1.Lines.Add(a+b+c+d);