Can't put command in own Procure?

Giganews Newsgroups
Subject: Can't put command in own Procure?
Posted by:  Perry (perry.kappete…@forthc.com)
Date: Wed, 23 Jun 2004

Kinda puzzled with this, but

when I have:  (winsock = the NNTP part of indy)

procedure TForm1.Button5Click(Sender: TObject);
begin
if winsock.Connected=true then winsock.GetNewsgroupList(txtLog.Lines);
end;

then it works.

BUT

when I create my own procedure

procedure Grabbing();
begin
if winsock.Connected=true then winsock.GetNewsgroupList(txtLog.Lines);
end;

Then it won't work.  since  winsock.connected (the connected part) aint in
the list.

Only trying to do this in a different Thread so, when I push the button, I
can do other things instead of just waiting.
Shouldn't be that hard.. guess I don't understand why it doesn't work in my
Grabbing Routine.

Thanks so much

  Perry

Replies