Internet Direct (Indy) Version 9.0.2 Beta
|
procedure GetNewGroupsList(const ADate: TDateTime; const AGMT: boolean; const ADistributions: string); overload; procedure GetNewGroupsList(const ADate: TDateTime; const AGMT: boolean; const ADistributions: string; AList: TStrings); overload;
Set AGMT to True to indicate that the time is based on Greenwich Mean Time or Universal Time (0 meridian) or false for the local time-zone.
ADistributions is an optional list of distributions such as "nj", "dc".
There are two ways to get newsgroups with this procedure. First, call GetNewGroups with no parameters and use the OnNewGroupsList event. Secondly, call the GetNewGroups with the AList parameter.
AList will then contain the newsgroup data which you can parse with the ParseNewsGroup procedure in the IdNNTP.pas unit.