Emty object array returns length 1
when i try to get the length of an (empty) object array it always returns 1. What is up with that? Is this behavior intended?
asked Aug 26 '18 at 04:43 PM in Bug Reports
No, not intended. Create a new variable, make it into an array, get length, you'll get 0.
Show us how you handle the array you find problematic.
answered Aug 26 '18 at 06:10 PM
OK i looked up my right mouse event again since the length was set to 1 every time i pressed it. It appears that i made a new array ("make array") with no content at the end. I use "clear" now and it works perfectly fine.
Thanks for youre patencience and help :D
PS: Is it intended to have length 1 when i make a new array with no content?
answered Aug 27 '18 at 10:15 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here