Count Property


Number of the messages in the Messages collection. If the collection is empty, the value is zero.

If the collection was created using RetrieveMessages or RetrieveHeaders methods of MailBee.POP3 object, the following expression is True:

Messages.Count = POP3.MessageCount


Value Type: Long
Parameters: None 
Remarks: This property is read-only

Usage example:

Dim Mailer, Msgs
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.POP3")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.POP3")
'In ASP use Response.Write instead of MsgBox
Mailer.LicenseKey = "put your license key here"
Mailer.Connect "mailserver.com", 110, "MyName", "MyPassword"
If Mailer.Connected Then
  Set Msgs = Mailer.RetrieveHeaders
  MsgBox "Headers received for " & Msgs.Count & " messages"
  Mailer.Disconnect
End If

See Also:

Item Property
Message Object
POP3.MessageCount Property
POP3.RetrieveMessages Method
POP3.RetrieveHeaders Method


Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.