Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2018
    Posts
    2

    Default ignore interchanged lines

    how can I configure text comparision to ignore interchanged lines? How to set the amount of lines that may be interchanged?

    example:
    **** text 1 ****
    Peter
    Bob
    ***************
    **** text 2 ****
    Bob
    Peter
    ***************

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,669

    Default

    Hello,

    You would need to Sort the files with an external command line application:
    http://www.scootersoftware.com/suppo...rnalconversion

    We do include one "Sort" out of the box, in the File Formats list, which sorts every line alphabetically. You can select it in the Session Settings or from the Formats toolbar dropdown.
    Aaron P Scooter Software

  3. #3
    Join Date
    Mar 2018
    Posts
    2

    Default

    after following these steps I get a "conversion error"

  4. #4
    Join Date
    Mar 2018
    Posts
    2

    Default

    The external sorter gave an error; the internal one sorted most properly though

  5. #5
    Join Date
    Mar 2018
    Posts
    2

    Default

    Hello Aaron,

    thanks for your answer, but this does not solve my problem. The difference is part of a long text. Sorting the whole file will make it difficult to locate other differences. Here a better example:

    **** file 1 ****
    IF ( _MdtReDoneFu1[VmdtIdx] = FALSE )
    THEN
    RetValN093 := OK;
    RetVal := OK;
    ELSE
    RetVal := RUNNING;
    END_IF
    **************
    **** file 2 ****
    IF ( _MdtReDoneFu1[VmdtIdx] = FALSE )
    THEN
    RetVal := OK;
    RetValN093 := OK;
    ELSE
    RetVal := RUNNING;
    END_IF
    **************

  6. #6
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,669

    Default

    Hello,

    Those steps for an external conversion is specific for RESX files using a RESX command line tool. You can use the internal sorter or provide any command line tool that is capable of sorting your file, but the RESX example would only work for RESX files.
    Aaron P Scooter Software

  7. #7
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,669

    Default

    Hello,

    Using a custom tool, it could parse into your specific file structure and normalize the lines within your sections, but we don't have this specific tool since it's dependent on your files.

    If you have small sections you want to sort, but not the whole file, on the fly, you can selection one section and Copy. Then select the other, right click, and Compare to Clipboard. Then viewing the new tab, you can enable the Sort format on just that tab/section.
    Aaron P Scooter Software

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •