Framework EDI Reference. Methods and Properties
ediDocument. NextDataSegment

Returns the next data segment in the document.

Syntax:

Returns

Returns an object of type FREDI.ediDataSegment.  The NextDataSegment returns empty if the call fails, or if the EDI document is empty, or if the end of the document has been reached.

Remarks

The NextDataSegment returns the next data segment in the document from the preceding data segment that was returned by a call made by FirstDataSegment, or from a previous NextDataSegment call.

Example

:
Set oSegment = oEdiDoc.FirstDataSegment
While Not oSegment Is Nothing
:
    Set oSegment = oEdiDoc.NextDataSegment
:
Wend