Framework EDI Reference. Methods and Properties
ediDataSegment. GetHierarchyString

Returns the hierarchy string syntax of the data segment.

Syntax:

<sHierarchyString> = object.GetHierarchyString

Remark

This method is only supported when the Cursor Type is set to Dynamic, and is only recommended for short EDI files.  For more details about the hierarchy string, please see Hierarchical String Syntax.

Example:

...
oEdiDoc.Load "810.X12"
Set oSegment = oEdiDoc.FirstDataSegment
Do While Not oSegment Is Nothing
    sLoopString = oSegment.GetHierarchyString
    Set oSegment = oSegment.Next
Loop
...

       sLoopString will have the value: "\ISA(1)\ISA(1)"