Internet Direct (Indy)
Home
PreviousUpNext
TIdNNTP.OnNewsgroupList Event

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

Pascal
property OnNewsgroupList: TIdEvenTIdNewsgroupList;
Parameters 
Description 
ANewsgroup 
Name of the newsgroup.
 
ALow 
Lowest index number for an available article.
 
AHigh 
Highest index number for an available article.
 
AType 
Posting status of the newsgroup.
 
ACanContinue 
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.

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.