|
The OnNewsArticle event is generated when the server
returns information about an article.
Syntax
Sub object_OnNewsArticle( [Index As
Integer,] ByVal Article As Variant,
ByVal Subject As Variant, ByVal
Author As Variant, ByVal Posted As
Variant, ByVal MessageId As Variant,
ByVal References As Variant, ByVal
ByteCount As Variant, ByVal LineCount
As Variant )
Remarks
The OnNewsArticle event is generated when the server
returns information about an article in the current newsgroup.
Calling the ListArticles method causes this event to be
generated for each article in the newsgroup. The following arguments
are passed to the event handler:
- Article
- An integer value which specifies the article ID. This is the
number that should be used to access the article on the
server.
- Subject
- A string value which specifies the subject of the article.
- Author
- A string value which specifies the author of the article. This
is typically the name and email address of the user who posted the
article.
- Posted
- A string value which specifies the date that the article was
posted.
- MessageId
- A string value which specifies the message ID for the article.
Although it is more common to reference an article by number, it is
possible to reference an article by its message ID. To select a
message by its message ID string, set the MessageID
property.
- References
- A string which specifies references to the article. This can be
used by an application to create a list of cross references to the
article so that related threads can be provided to the user.
- ByteCount
- An integer value which specifies the size of the message in
bytes.
- LineCount
- An integer value which specifies the number of lines of text in
the message.
See Also
Article Property,
MessageID Property,
ListArticles Method,
OnLastArticle Event
|
|