Framework EDI Reference. Methods and Properties
mailMessage. Is7Bit

Indicate if the message content is 7-bit.

Syntax:

Returns:

Returns TRUE (1) if the message content is 7-bit; otherwise returns FALSE.

Remarks:

A 7-bit content has all the bytes in the range 0 to 127 (ASCII).

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 the message.
Set oMessage = oMailDocument.GetMessage

MsgBox "Message is " & IIf(oMessage.Is7Bit, "", "Not") & " ASCII."