Accepted answer

Whatever is in the entries variable doesn't contain length property. Seems like you would like to get the length of some array / list from and object that is not an array / list.


I figure it out the problem was in the if sentence, when the condition is false I needed to do "nothing". My mistake was to call the ares.Focus() with no arguments.

Related Query

More Query from same tag