Re: Can't put command in own Procure?

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

Nevermind,

forgot to declare the procedure in the beginning of the code.
Now working on how to get that procedure in a Thread.

  Perry

"Perry" <perry.kappeteā€¦@forthc.com> wrote in message
news:DA7EA9782CA2E240perry.kappeteā€¦@forthc.com...
> 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

None

In response to

Can't put command in own Procure? posted by Perry on Wed, 23 Jun 2004