Returns the standard requirement of the data element's presence at its position in the collection.
Syntax:
Remarks
The following are possible values for the standard requirement.
ASC/X12
- M - Mandatory
- F - Floating
- O - Optional
UN/EDIFACT
- M - Mandatory
- C - Optional
Example
Dim oEdiDoc As Fredi.ediDocument
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 standard requirement of the data element's presence.
MsgBox "Data element standard requirement: " & oDataElement.Requirement
Sample