Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Oct : Re: OnBeforeCommandHandler - Indy v9

www.cryer.info
Managed Newsgroup Archive

Re: OnBeforeCommandHandler - Indy v9

Subject:Re: OnBeforeCommandHandler - Indy v9
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Mon, 29 Oct 2007 10:55:11

"Jamie Dale" <jamie.dale@yahoo.com> wrote in message
news:472512ed@newsgroups.borland.com...

> I can send a command and the commandhandler appears to
> accept the command by itself.

A CommandHandler supports parameters as well.  The TIdCommandHandler class
has CmdDelimiter, ParamDelimiter and ParseParams properties that control how
parameters are handled when received.  Inside the OnCommand event hander,
the TIdCommand class has Params and UnparsedParams properties, whose use
depends on how you have the TIdCommandHandler.ParseParams configured.

> My initial thought was to use OnBeforeCommandHandler

That is completely unnecessary.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive