User | Kudos |
---|---|
8 | |
6 | |
5 | |
4 | |
3 |
The function Excel Get Excel Location function in the NI Report Generation Toolkit takes an Excel cell address (e.g.A1) and returns row/column (array) indices (e.g. 0, 0). However, if a "non-cell" address, including a blank input, is input, the result is 0, 0, the same as if A1 was entered. I'd suggest that an index of -1, similar to the "illegal Array index", be returned for cell entries that don't parse as a Cell Address. Specifically, <blank> would return -1, -1 (which doesn't correspond to the legal cell address A1).
This illogcal behavior of the current function has messed up some functions I've written to manipulate Excel worksheets. My routines checked for indices "in range", but got fooled by the "wrong" 0, 0 returned by <blank>. So either I have to build a "validity check" before using this function or (better, in my opinion) the function needs to return legal indices only for legal inputs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has not received any kudos within a year after posting will be automatically declined.