Framework EDI Reference. Methods and Properties
ediDataSegment. Handle

Gets the handle of the data segment.

Syntax:

Remarks

The handle of the data segment is a unique number that is assigned to all data segments in a document. 

Example

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

Set oSegment = oEdiDoc.FirstDataSegment
Do While Not oSegment Is Nothing

    MsgBox oSegment.ID & " " & oSegment.Handle

    Set oSegment = oSegment.Next
Loop

Sample

Visual Basic program displaying Data Segment properties