Adding Fast Loops


    Adding Fast Loops

    Creating loops is necessary for creating any EDI file.  RDP Crystal EDI Library enables you to create a loop very quickly and save a lot of type in the long run.


    // Instantiate an instance of EDIDocument and set the name of the file to be created
    EDIDocument sampleEDIFile = new EDIDocument(“C:\\My837EDIFile.txt”);

    // Create an interchange loop. This loop will contain all other loops in the EDI structure
    Loop interchangeHeaderLoop = “Interchange Header”;  //NOTICE: The “Interchange Header” loop is automatically constructed

    // Add the interchange loop to the EDI document

    // Generate the EDI file

    in EDI Document
    Did this article answer your question?