Framework EDI Reference. Methods and Properties
ediDataSegment. ID

Returns the unique identifier of the data segment.

Syntax:

Remarks:

All data segments in EDI have unique identifiers.

The data segment ID in a document references the defined structure of the data segment that the structure of the data in the document must follow.

Example

Dim oEdiDoc As Fredi.ediDocument
Dim oSegment As Fredi.ediDataSegment
...

Set oSegment = oEdiDoc.FirstDataSegment
While Not oSegment Is Nothing

    sSegmentID = oSegment.ID
    sLoopSection = oSegment.LoopSection
    nArea = oSegment.Area
    ...

    Set oSegment = oSegment.Next
Wend

Sample

Visual Basic program displaying Data Segment properties