Skip to content

Can't write empty values into numeric fields #40

@Plavozont

Description

@Plavozont

Hello, sorry, maybe I am missing something obvious, but I can't write null values into numeric fields, all null values become zeroes in the end file. I create Object[] rowObjects = new Object[field.Count]; (which is not documented in a quick start some how)
Fill it like this
rowObjects[i] = ((field_value==DBNull.Value) ? null : field_value);
Or like this
rowObjects[i] = field_value;
Then
writer.AddRecord(rowObjects);
Then
writer.Write(fos);
In both cases I get zeroes, please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions