close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

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 Jorge)

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 Jorge

Description: modified (diff)
Status: newaccepted

comment:2 Changed 14 years ago by Jorge

Resolution: fixed
Status: acceptedclosed

(In [3212]) closes #1099, now Excel.ReadRange accept an extra argument with de default values for every column

comment:3 Changed 14 years ago by Jorge

(In [3214]) * Updating BasicExcel & FormatExcel

  • Excel.ReadRange: when a columns type is specified all cells are readed as typed. refs #1099
  • Excel.ReadSeries: implemented, fixes #1100

comment:4 Changed 14 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: closedreopened

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 Víctor de Buen Remiro

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 Víctor de Buen Remiro

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 Víctor de Buen Remiro

We can avoid the warnings in this way

Real old.warn = Show(False,"WARNING");
...
Real Show(old.warn,"WARNING");
Note: See TracTickets for help on using tickets.