I'm annoyed at myself really...
For an array going from 0 to 10...
the FIRST element is at 0
the Second element is at 1
etc.
So when Array Scan returns the RELATIVE index (as the manual says it does) if something is at element 0 it returns 1 (the FIRST element)
I must've read that darned help 30 times before this finally sank in - only *after* I'd spent an hour trying to find why I couldn't get to the right value
:lam:
I think it's time for a beer. . .
For an array going from 0 to 10...
the FIRST element is at 0
the Second element is at 1
etc.
So when Array Scan returns the RELATIVE index (as the manual says it does) if something is at element 0 it returns 1 (the FIRST element)

I must've read that darned help 30 times before this finally sank in - only *after* I'd spent an hour trying to find why I couldn't get to the right value
:lam:
I think it's time for a beer. . .
Comment