Internet Direct (Indy)
Home
PreviousUpNext
TIdNNTP.OnNewGroupsList Property

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

Pascal
property OnNewGroupsList: 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 
True to continue newsgroup list retrieval. False to stop retrieval. 

OnNewGroupsList is a TEventNewsGroupList property that represents the event handler triggered when new newsgroups are retrieved using the GetNewGroupsList method. 

OnNewGroupsList is used when GetNewGroupsList is called without a TStrings destination for the new newsgroup listing. OnNewGroupsList will be triggered once for each NNTP server response line retrieved and processed in GetNewGroupsList

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 EIdNNTPNoOnNewGroupsList 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 processing newsgroups retrieved in the server response.

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.