Returns the reference code of the Data Segment in a message (or Transaction Set).
Syntax:
Returns:
A string indicating the reference code of the data segment in a message.
Remark:
The reference code of a data segment is basically the combination of the data segment id and its position number. For example, a data segment with the reference code BEG10, has a segment id BEG, and a position number 10.
Example
Dim oEdiDoc As Fredi.ediDocument
Dim oSegment As Fredi.ediDataSegment
...Set oSegment = oEdiDoc.FirstDataSegment
Do While Not oSegment Is Nothing
sSegmentId = oSegment.ID
nSegmentPos = oSegment.Position
MsgBox sSegmentId & " " & Str(nSegmentPos) & ", " & oSegment.Reference
Set oSegment = oSegment.Next
Loop
Sample