Framework EDI Reference. Methods and Properties
ediDataSegment. GroupHandle

Returns the handle of the Functional Group that the Data Segment belongs to.

Syntax:

Returns:

A number identifying the group.  If the data segment is not in a group then it returns a 0.

Remark:

The GroupHandle method returns a handle number for a Functional Group, and not for a group of segments (or loops).  

Example

Dim oSegment As Fredi.ediDataSegment

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

    MsgBox oSegment.ID & " " & oSegment.GroupHandle

    Set oSegment = oSegment.Next
Loop

Sample

Visual Basic program displaying Data Segment properties