I am stumped.

a is a table with a label row followed by data rows.  Breaking
everything down into small steps to see where an error might occur:

{. a
┌───┬───┬───┬───┬─-─┬-──┬──-────┬┐
│Date│Price│Open│High│Low│Vol.│Change %││
└───┴───┴───┴───┴-──┴─-─┴─-─────┴┘
0 { ({. a)
┌───┐
│Date│
└───┘
> 0 { ({. a)
Date

toupper (> 0 { ({. a))
DATE

'DATE' -: toupper (> 0 { ({: a))
0

if. 'DATE' -: toupper (> 0 { ({. a)) do. a=. }. a end.

If the above is true (1), the surrounding if. statement will delete
the label row.  But, since DATE and DATE are identical, why is it
false (0)?

Thanks in advance to anyone who can help explain this mystery!

Harvey
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to