Opened 14 years ago
Last modified 14 years ago
#1099 reopened enhancement
Specified column type in Excel.ReadRange
Reported by: | Jorge | Owned by: | Jorge |
---|---|---|---|
Priority: | highest | Milestone: | TOL Packages |
Component: | Excel API | Version: | 2.0.1 |
Severity: | critical | Keywords: | |
Cc: |
Description (last modified by )
When reading a range using Excel.ReadRange
the empty cells are returned as Text ""
. It is requested a way to specify data type for the columns of the range in order to create the corresponding missing value instead of Text ""
Change History (7)
comment:1 Changed 14 years ago by
Description: | modified (diff) |
---|---|
Status: | new → accepted |
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:3 Changed 14 years ago by
comment:4 Changed 14 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
The argument ColumnTypes is not explained at description.
I suposed that a set of type names was expected but is the type of each element which are set for the column.
I think that ColumnDefault was a more explicit name for this argument.
When you specifies a column of type Real and there is some empty or non numeric cell, then a warning is launched for every one. When there are hundreds or thousands of missing values this can be very slow, baffling and maddening.So, a good feature could be another optional argument that specifies the verbosity of this kind of messages. User could get all messages like now, hide all messages or get just one message with the total number of non numeric cells.
So, a good feature could be another optional argument that specifies the verbosity of this kind of messages. User could get all messages like now, hide all messages or get just one message with the total number of non numeric cells.
comment:5 Changed 14 years ago by
Passing Empty in argument ColumnTypes should be the same effect that pass no argument but it shows a warning message
The number of column's types does not match the number of columns ...
comment:6 Changed 14 years ago by
Here there is an example that shows a lot of irrelevant warnings.
You must compile first the package ImportExport due is not already uplodaded.
comment:7 Changed 14 years ago by
We can avoid the warnings in this way
Real old.warn = Show(False,"WARNING"); ... Real Show(old.warn,"WARNING");
(In [3212]) closes #1099, now Excel.ReadRange accept an extra argument with de default values for every column