Framework EDI Reference. Methods and Properties
ediDataElement. ID

Returns the identifier of the data element.

Syntax:

<sID> = object.ID

Remarks

All data elements have a unique ID in the EDI standard.

Example:


Dim oDataElement As Fredi.ediDataElement
Dim oDataSegment As Fredi.ediDataSegment

....

' Get first data segment in document.
Set oDataSegment = oEdiDoc.FirstDataSegment

' Get the data element that is the 5th position of the BEG data segment.
Set oDataElement = oDataSegment.GetDataElementByPos("\ISA\GS\ST\BEG<373>")

' Show the identifier of the data element.
MsgBox "Data element identifier: " & oDataElement.ID

Sample

P_ID.zip