EndSegment Method
Ends writing the current segment.
Syntax
void __fastcall EndSegment();Remarks
EndSegment terminates writing the current segment and flushes it to the output stream/file.
You should call EndSegment to close a segment started with StartSegment.
Example IDocWriter Code:
idocwriter1.StartIDoc() idocwriter1.WriteControlRecord() idocwriter1.StartSegment("Segment1") idocwriter1.WriteFieldValue("Field1", "Value1") idocwriter1.WriteFieldValue("Field2", "Value2") ... idocwriter1.EndSegment() idocwriter1.StartSegment("Segment2") idocwriter1.WriteFieldValue("Field1", "Value1") ... idocwriter1.EndSegment() ... idocwriter1.EndIDoc()