Quote Originally Posted by wysota View Post
What does "length" contain? setItem() won't create new rows, it'll substitute the ones already existing, are you aware of that?
Yes, I am.
length (sorry, I forgot to explain it) is an int valorized by the query "SELECT COUNT(*) FROM table" and it contains the number of records fetched by the query.
In substance, I'm trying to create all the required rows and then populate them with setItem(). Isn't it expected to work in this way too? Is there a better way?