Returns a data segment object that contains unverified data from the document.
Syntax:
Returns
Returns an object of type FREDI.ediDataSegment.
Remarks:
The values extracted from the document are contained in the individual data elements of the data segment. The values are not verified against a schema. For data verification, use the ediDataSegment.Next instead.
Because the data is not verified, the ReadNext method is a faster way of extracting data than the ediDataSegment.Next method.
Example
Dim oSegment as Fredi.ediDataSegment
Dim oEdiDoc As Fredi.ediDocument
:
Set oSegment = oEdiDoc.FirstDataSegment
While Not oSegment Is Nothing
sSegmentID = oSegment.ID
:
Set oSegment = oSegment.ReadNext
Wend