Releases: ws-garcia/VBA-CSV-interface
Releases · ws-garcia/VBA-CSV-interface
CSV Interface v4.3.8
Improvements
- Much more stable dialect sniffer: the parser can now infer CSV dialects in a much more stable way, omitting the propagation of mean errors to the table record scores.
CSV Interface v4.3.7
Bugs fixed
- Dialect sniffer: the CSV file dialect cannot be detected when the qualifier was not present.
CSV Interface v4.3.6
Bug fixes
- Faulty import of CSV file segments: The parser could not import CSV file segments when
.parseConfig.startingRecord
and.parseConfig.endingRecord
properties were specified.
CSV Interface v4.3.5
Improvements
- More powerful dialect sniffer: the parser can now infer CSV dialects much more accurately. The tool can now correctly detect line endings in files containing non-unique end-of-line characters.
CSV Interface v4.3.4
Improvements
- Released a general version of CSV Interface: this library can be used from any Office application, it is supposed to work also in other environments such as AutoDesk AutoCAD.
Bug fixes
- ImportFromCSV: the information about number of fields was not correctly mapped, this caused erratic behavior at import stage and in the dump methods to spreadsheets and databases when the user indicated the fields to be imported.
CSV Interface v4.3.3
Bug fixes
- CSVArrayList: undesired behavior of the
Copy
method when the given end index exceeded the current amount of data in the instance.
CSV Interface v4.3.2
Bug fixes
- CSVTextStream: subfolders were not managed correctly.
- CSVArrayList: Add2 method was broken.
CSV Interface v4.3.1
Improvements
- Stream reader: smarter work with text files containing a mixture of line ending characters.
- Filter: faster execution.
Bug fixes
- Delimiter guesser: can't guess delimiters when forcing streams to return
vbLf
as EOL char. - Dedupe: broken function when calling from
CSVInterface
class module.
CSV Interface v4.3.0
This version includes an important code refactoring of several members of the library, as well as some improvements that allow to outline the tool as a solid solution for data management.
Improvements
- Key related records: users can now use keys to segregate records as they are stored when the
keyTree
property is set toTrue
. For example, under a key "fruits" you can store the records "lemon", "pear" and for a key "tools" you can store "hammer" and "chainsaw"; the user can request the segregated records at any time with theGetIndexedItem
method by specifying a key. - Faster deduplication: the execution time of the "Dedupe" method is 40% less.
- Use headers titles for computations:
Filter
,Reduce
andInsertField
methods now supports headers titles (also with white spaces) as variables. - Calculated fields: the new
InsertField
method unleashes the possibility to use complex expressions to calculate values and insert them as a new field/column in the data tables. For example the following instruction adds a new field called "Taxes" in the ninth position which is defined as 18% of the total profit in each record, giving the VBA "Currency" format to the computation made: :.InsertField(8, "Taxes", True, "FORMAT(Total Revenue * PERCENT(18);'Currency')")
. - Easy data storage: copy data from arrays of arraylist with the flexible and robust
Add2
method and theitems
property. Define and share data from scratch with theFromString
andToString
methods.
Members changes
CSVinterface
-
InsertField
now has aFormula
parameter to allow insertion of calculated fields.
CSVarrayList
- Added:
Dedupe
,FromString
,InsertField
,MergeFields
,RearrangeFields
,RemoveField
,ShiftField
,ShiftRecord
,SortByField
,SortKeys
,SplitField
, andToString
methods. - Added:
isSorted
,keyTree
,lastSortedIndex
properties. - Optimized:
Add2
andDedupe
methods,items
property. - Bug fixed: parser unable to properly get the order of the fields given by the user. Affected methods:
Dedupe
,LeftJoin
,RightJoin
,InnerJoin
. - Bug fixed: unexpected behavior. Affected method:
SortByField
CSVexpression
- Improvement: more than 60 string, mathematical, logical, date-time and financial built-in functions
- Bug fixed: boolean negation prevents recognizing variables. Affected method:
Eval
. - Bug fixed: function parsing was broken. Affected method:
Create
.
CSV Interface v4.2.1
Members changes
CSVarrayList
- Bug fixed: Joins did not retrieve headers.