Topic Path: Symbol Reference > Classes > TIdNNTP Class > TIdNNTP Events > OnNewsgroupList Event
TIdNNTP.OnNewsgroupList Event

Event handler signalled on receipt of values in the newsgroup list.

property OnNewsgroupList: TIdEvenTIdNewsgroupList;
Name of the newsgroup.
Lowest index number for an available article.
Highest index number for an available article.
Posting status of the newsgroup.
False to stop newsgroup list retrieval. 

OnNewsgroupList is a TEventNewsGroupList property that represents the event handler triggered when values in the newsgroup list are retrieved using the GetNewsgroupList method. OnNewsgroupList is used when GetNewsgroupList is called without a TStrings destination for the newsgroup listing. 

OnNewsgroupList will be triggered once for each newsgroup response line retrieved and processed in GetNewsgroupList

Applications must assigned a procedure to the event handler when TStrings is not used to store the newsgroup listing. If the event handler is unassigned, a EIdNNTPNoOnNewsgroupList exception will be raised. 

The event handler can be used to update the stored newsgroup list on the NNTP client using values in the event handler arguments. Setting ACanContinue to False stops the newsgroup retrieval.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.