Internet Direct (Indy)
Home
PreviousUpNext
TIdMessageDecoderList.ByName Method

Locates an instance of a registered decoder class by name.

Pascal
class function ByName(
    const AName: string
): TIdMessageDecoderInfo;
Parameters 
Description 
AName 
Decoder class name to be located. 

TIdMessageDecoderInfo - Container for information and class type for the registered decoder class.

ByName is a TIdMessageDecoderInfo class function used to locate an instance of a registered decoder class by the name specified in AName. 

ByName searches the global list of registered decoder classes in GMessageDecoderList to locate an instance with a name matching the value in AName. If there is no registered decoder class with a name matching AName, an EIdException is raised with the constant message RSMessageDecoderNotFound and the value in AName.

Exceptions 
Description 
With the message RSMessageDecoderNotFound
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.