Sets or gets the boundary string.
Syntax:
<sBoundaryString> = object.Boundary
object.Boundary = < sBoundaryString >
Remarks
The boundary string only applies to composite messages that contain sub messages or body parts. The boundary is used to separate these entities within the message.
The Content-Type header of this message specifies the boundary string in the "Boundary" parameter of the header. This property returns the string that was specified in the parameter, and modifying the value in this property modifies the "Boundary" parameter with the modified value.
Content-Type: multipart/report; boundary="new.boundary.boundary"
When Framework EDI reads the multipart message it uses the boundary string to indicate the start and the end of a body part. It is important that the body parts itself does not contain any string that has the same pattern as the boundary string.
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 containing the EDI data.
oMailDocument.Load App.Path & "\SampleMail.TXT"
' Get the top message.
Set oMessage = oMailDocument.GetMessage
' Modify boundary between body parts.
oMessage.Boundary = "new.boundary.string"
' Save changes.
oMailDocument.Save App.Path & "\Output.TXT"
MsgBox "Done"
Other Notes
If the Prepare method was used to generate the message, the Boundary method must be called after the Prepare method for the boundaries to take in the new value.
Samples