|
Summary
Number of bytes and lines in message header and body. This event has been deprecated.
Description
The OnStatistics event will occur in response to the Action property being set to
ACTION_CREATE or in response to calling the Create or CreateX method. Once the header and
body of the message is created, the MIME control will fire the OnStatistics event to
deliver the number of lines and number of bytes in the message header and body. This event
will be fired before the MIME control requests for information about the attachments.
Only one OnStatistics event will occur to deliver the information. The application can
then display this summary information to the user.
To abort the create message, set the Action property to ACTION_ABORT (or call the Abort
method) during this event. The action in progress will be canceled and no further such
events will occur.
Example
Sub Mime_OnStatistics (Lines As Integer, Bytes As Long)
' display statistics
Message = "---------- Statistics ----------- " + Chr(10) + Chr(10)
Message = Message & "Lines (total): " & Lines & Chr(10)
Message = Message & "Bytes (total): " & Bytes & Chr(10)
' display message
MsgBox Message, 64, "Sample Program"
End Sub
|