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

Selects the active newsgroup on the NNTP server.

procedure SelectGroup(
    AGroup: string
);
Parameters 
Description 
AGroup 
Group to make the active newsgroup. 

SelectGroup is a procedure used to make the newsgroup specified in AGroup the active newsgroup for the client connection to the NNTP server. SelectGroup calls SendCmd using the NNTP GROUP command to activate the newsgroup requested in AGroup. SelectGroup expects the numeric response code 211 to indicate successful selection of the newsgroup. 

SelectGroup parses the values in the textual response from the NNTP server to determine the values for the MsgCount, MsgLow, and MsgHigh properties. 

Use SelectGroup after successful connection to an NNTP server and prior to retrieving articles from the NNTP server.

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