Comprises information about a specific News server article.
Outputs or sets the name the person who is the author of the specific article or posted it.
Object.Author
String.
Read-Write.
Refer to Examples under Post method.
Returns or sets the body of the article.
Object.Body
String.
Read-write.
Refer to Examples under Post method.
Gives the size of the article (in Bytes).
Object.ByteCount
Long.
Read-only.
This example outputs the size of the first article existing under the group Test.
Gets the groups available on the server
Set news =CreateObject("UCX:INews.news")
’Set the IP address
News.server = "164.99.150.93"
’Establish connection with the server
News.Connect()
Set groups = news.groups
Set group = groups.item("Test")
Set articles = group.articles
Print "The number of group objects is "&articles.count
Set article = group.First
Print article.author
Print article.bytecount
Returns or sets the post date.
Object.Date
Date.
Read-write.
Refer to Examples under Post method.
Outputs the total number of lines present in the body of the specific article.
Object.LineCount
Long.
Read-only.
This example outputs the total number of lines present in the body of the articles present in the group Test.
Gets the groups available on the server
Set news =CreateObject("UCX:INews.news")
’Set the IP address
News.server = "164.99.150.93"
’Establish connection with the server
News.Connect()
Set groups = news.groups
Set group = groups.item("Test")
Set articles = group.articles
Set article = group.First
Print article.author
print article.linecount
Returns or sets the MessageID of the article.
Object.MessageID
String.
Read-write.
This example returns the messageID of the first article present in the group Test.
Gets the groups available on the server
Set news =CreateObject("UCX:INews.news")
’Set the IP address
News.server = "164.99.150.93"
’Establish connection with the server
News.Connect()
Set groups = news.groups
Set group = groups.item("Test")
Set articles = group.articles
Print "The number of group objects is "&articles.count
Set article = group.First
print article.messageID
Returns or sets the Newsgroup in which the article exists.
Object.NewsGroups
String.
Read-write.
Refer to Examples under Post method.
Returns or sets the message ID of the reference article or the article to which a specified article is replied.
Object.Reference
String.
Read-write.
Refer to Examples under Post method.
Returns or sets the subject of the article.
Object.Subject
String.
Read-write.
Refer to Examples under Post method.
Sends an article that is created with CreatePostArticle method to the News server.
Object.Post()
None.
None.
The following properties should be set by the user before posting the article:
This example posts the article created using the CreatePostArticle () method, under the Newsgroup Test.
’Create post article
Set news = CreateObject("UCX:INews.news")
’Set the IP address
news.server = "164.99.150.93"
’Establish connection with the server
Status = news.Connect()
set article = news.createpostarticle()
article.author = "Sudha"
article.body = "test message"
article.subject = "testing"
article.reference = "0"
’give the newsgroup in which the article is to be created
article.newsgroups = "test"
article.date = cdate(date)
print article.date
article.post()
’Post the created article
Status = article.Post()
Print "The article creation status: "&status