|Is row==row["0"]? Or should it be? [message #132105]
||Fri, 17 February 2006 06:13
| Peter Fopma
Registered: July 2009
Here is another interesting thing we found...|
We have a dataset where a column is named 0 (zero). Dragging the
dataset to the reports yields a table where the above column is
addressed as row["0"]. The preview shows the expected values.
Since the data is needed for further calculation we changed the
data element and added an assignment to a global array:
I expected the preview to remain unchanged and have a copy of the
values in the array named theArray, but...
Now the column in the preview contains the values of the index column -
and the array is assigned with the same index values.
Changing the code to
theArray[rowCounter++]=row; // WLOG: assuming the column named 0 is at
shows the correct result. Renaming the column to "Fred1" "Berta12" or
anything that is not a number works, too.
For the sane this should not be a problem since numbering metadata is not
exactly self-explanatory. But still, I think this is not the way it is
to work, or is it!?
Powered by FUDForum
. Page generated in 0.02035 seconds