Gets the data segment raw string as retrieved from the document.
Syntax:
Returns:
A string of the complete data segment.
Remarks
The string returned from the SegmentBuffer property cannot be directly modified. When reading a document, the segment string making up the properties of the data segment is stored in the SegmentBuffer property. When data element values are changed within the document, this string does not change. To generate a string that reflects the new modified values you must make a call to the Refresh method. When creating a new data segment by calling the CreateDataSegment method, this property is empty – even when data elements are added and values are modified. Call the Refresh method to calculate the segment buffer string and populate this property.
Example:
Dim oEdiDoc As Fredi.ediDocument
Dim oSegment As Fredi.ediDataSegment
...Set oSegment = oEdiDoc.FirstDataSegment
Do While Not oSegment Is Nothing
sEdiText = sEdiText & vbCrLf & oSegment.SegmentBuffer
Set oSegment = oSegment.Next
Loop
MsgBox sEdiText
Sample