Returns the ordinal position of the Data Segment.
Syntax:
Returns:
A number indicating the data segment's ordinal position.
Remark:
Ordinal numbers are not normally shown in implementation guidelines, but they are the position number of a data segment in a message (or Transaction Set). Unless data segments have been inserted or deleted in the message, the ordinal position can be determined by having the same number as their count number, if you were to count through all segments in the message.
Example:
Dim oEdiDoc As Fredi.ediDocument
Dim oSegment As Fredi.ediDataSegment
...Set oSegment = oEdiDoc.FirstDataSegment
Do While Not oSegment Is Nothing
nOrdinalNo = oSegment.Ordinal
Set oSegment = oSegment.Next
Loop
Sample