Autor Beitrag
MarkusReisser
Hält's aus hier
Beiträge: 15



BeitragVerfasst: Mi 08.10.08 17:55 
Hallo,

ich wollte gerade etwas coden.

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, IdHTTP;





type
  TForm1 = class(TForm)
    Button1: TButton;
    Memo1: TMemo;
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  form1.Memo1.Clear;
 try
   form1.memo1.Text:=  IdHTTP1.Get('http://www.google.de');
 except
   form1.memo1.Text := IdHTTP1.ResponseText;
   if POS('404',memo1.Text) > 0 then
     showmessage('404 - File not found on Server');
 end;
end;


Wenn ich das komipieren will, sagt er mir:

Undefinierter Bezeichner "IdHTTP1"

So wenn ich dann noch IdHTTP1:IdHTTP; unter type schreibe, sagt er mir, dass IdHTTP keine entsprechende Komponente hat.

Ich habe aber oben in der Leiste "IndyClients, IndyServers, Indy I/O Handers" usw stehen. Habe mir auch gerade für Delphi 7 den Indy Plus Installer gezogen, der das ja automatisch installieren soll.

Woran kann den das Problem noch liegen?

Mfg Markus
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 08.10.08 17:58 
Du musst die Komponente entweder auf dein Formular legen oder selbst per Quelltext erzeugen.
MarkusReisser Threadstarter
Hält's aus hier
Beiträge: 15



BeitragVerfasst: Mi 08.10.08 18:09 
Hallo,

da hast Du natürlich Recht. Nun gehts auch wunderbar.

Danke Dir!

Mfg Markus