Page 1 of 1

Leading Space in Item List

Posted: Thu Jan 08, 2015 11:09 pm
by sritcp
This is not really a question.

I was disconcerted to note that leading spaces are included in item names.
The second item of the list "B1, B2, B3, B4" is " B2" (i.e., leading space followed by B2).
Returns an error if your array element is, say, tArray["B2"].
Easy to miss, as I did today!

Regards,
Sri.

Re: Leading Space in Item List

Posted: Thu Jan 08, 2015 11:33 pm
by Da_Elf
just strip out the leading spaces

Re: Leading Space in Item List

Posted: Thu Jan 08, 2015 11:34 pm
by dunbarx
Hi.

This is expected behavior. A space may look empty, but, like "0" it is full of content and meaning.

Craig