Framework EDI Reference. Methods and Properties
mailMessage. HeadersCount

Gets the count of headers already in the message.

Syntax:

Example

Dim oEdiDoc As Fredi.ediDocument
Dim oMailDocument As Fredi.mailDocument
Dim oMessage As Fredi.mailMessage

' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument

' Get internet mail document object
Set oMailDocument = oEdiDoc.GetMailDocument

' Load the mail document
oMailDocument.Load App.Path & "\SampleMail.TXT"

' Get top level message of the document.
Set oMessage = oMailDocument.GetMessage

MsgBox "Number of header(s) =" & CStr(oMessage.HeadersCount)

 

Samples