Internet Direct (Indy)
Home
PreviousUpNext
TIdNNTP.SelectGroup Method

Selects the active newsgroup on the NNTP server.

Pascal
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.

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.