Topic Path: Symbol Reference > Classes > TIdNNTP Class > TIdNNTP Methods > SelectArticle Method
ContentsIndexHome
PreviousUpNext
TIdNNTP.SelectArticle Method

Sets the current article pointer in the newsgroup.

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.

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