Sets or gets the composite element terminator used by the document.
Syntax:
Remarks
The CompositeTerminator property specifies the string that separates the sub elements (or component elements) in a composite element.
- EDIFACT – The component element terminator must be specified explicitly before loading the EDI document, otherwise the document will not be properly translated and an error will be generated. However, if a UNA service segment is specified then the component element terminator specified in the UNA segment will be used instead. Also, if syntax levels are defined, and if the document references one of the predefined syntax level, then the component element terminator defined in the syntax level will be used. If auto-detect is disabled, the component element terminator must be specified regardless, because neither the information in the UNA service segment nor the defined syntax level will be used.
- X12 – The composite terminator is specified in the mandatory data element of the Interchange Control Header (ISA), so it does not have to be specified explicitly. However, if the auto-detect property is disabled, then the delimiter must be specified, otherwise either the document will not be translated properly, or an error will get generated.
Example
Set oEdiDoc = New Fredi.ediDocument
oEdiDoc.SegmentTerminator = "'"
oEdiDoc.ElementTerminator = "+"
oEdiDoc.CompositeTerminator = ":"
oEdiDoc.ReleaseIndicator = "?"