# ReadMe ReCsvEditor 0.98.2

This version contains minor fixes and some Script examples.

If you have any questions, problems or suggestions feel free to contact me at:

- General Discussions
- Create a ticket

## Installing

- Run the supplied installer

## Changes in Detail

### Scripting changes

Scripting changes include:

To edit a Csv file:

    32  var dir = RecordEditorData.getDirectoryName();
    33  if (dir != null) {
    34     var screen = RecordEditorData.openCsvFile(dir + "barDTAR020.csv", "UTF-8", "|", "'");
    35  }

To look through the files being edited:

    56     var filesBeingEdited = RecordEditorData.getFileList();
    57     for (i = 0; i < filesBeingEdited.size(); i++) {
    58         var fileDef = filesBeingEdited.get(i);
    59         if (fileDef.layout.getLayoutName() == "DTAR020") {
    60             return fileDef.getScriptData();
    61         }
    62     }
    63     var dir = RecordEditorData.getDirectoryName();

Note: the call fileDef.getScriptData() will return the ScriptData (RecordEditorData) for a file.

### Looking at the files being edited

You can look at the files being edited using the RecordEditorData.getFileList()

### Code Generation

When view a file, the Generate options will generate Java / Python code to read / write the file.

### Edit Standard Field Delimiters and Quotes

You can now edit the Standard Field delimiters and Quotes that appear in Drop down menu's (+ are searched for). Select Edit >>> Edit options, the select the Csv Tab:

## Change Summary

### Changes 0.98.2

- Minor fixes
- Scripting changes and Examples openfile.js - edit a Csv file and filterOnStoreCsv.js -link 2 files together.

### Changes 0.98.1

- Add Code generation option (java python). This option will generate java/python code read/write the file being viewed.
- New Fixed width option with old fixed width option becoming Schema option.
- You can enter your own Delimiters/Quotes in in the Export as Csv option.
- Can enter Field-Delimiters/Quotes in a Unicode format of \u000A etc.
- Can edit the default Quotes (Edit >>> Edit Options >>> Csv)
- Basic line commands added (e.g. i (insert 1 line), i5 (insert 5 lines, d (delete 1 line) and r (repeat line)).
- Can edit basic Cobol files (using the schema option).

### Changes 0.97h

- minimum window size is set.
- Extra options added to from screen
- New parameters for Params.Properties in <home>/.RecordEditor/reCsvEd or C:\User\<username>\.RecordEditor\reCsvEd directories. In particular the variable ScreenSizeOpt has 4 new options (E/F):

          csvlastScreenWidth=1855
          csvlastScreenHeight=951
          ScreenSizeOpt=F
      or
          csvScreenStartHeight=768
          csvScreenStartWidth=1024
          ScreenSizeOpt=E
      or
          ScreenSizeOpt=1    ## Screen 1
      or
          ScreenSizeOpt=1    ## Screen 2

  These control the initial size of the ReCsvEditor screen.
- Extra Startup-size options added to OptionsEditor screen
- Options to start on start on screen 1/2