Internet Direct (Indy)
Home
PreviousUpNext
TIdNNTP.SelectArticle Method

Sets the current article pointer in the newsgroup.

Pascal
function SelectArticle(
    AMsgNo: Integer
): Boolean;
Parameters 
Description 
AMsgNo 
Message number to be selected in the current article pointer. 

Boolean - True when the current article pointer has been updated.

SelectArticle is a Boolean function that sets the current article pointer to the message number specified in AMsgNo. SelectArticle calls SendCmd using the NNTP STAT command to select the requested article by the specified message number. 

SelectArticle returns True when the response code from the NNTP server is 223. SelectArticle returns False when the response code from the NNTP server is 423. Any other value will result in an exception being raised for the invalid protocol response code. 

Use SelectGroup to activate a specific newsgroup prior to using SelectArticle.

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.