How can i iterate over all elements in an array?
You seem to have CSS turned off. Please don't fill out this field.
Anonymous
It's the same as in JavaScript (QtScript and JavaScript are based on ECMAScript, therefore the core features/functions are equal):
for (var i = 0; i < myArray.length; i++) { scriptThread.appendTextToConsole(myArray[i]); }
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
How can i iterate over all elements in an array?
It's the same as in JavaScript (QtScript and JavaScript are based on ECMAScript, therefore the core features/functions are equal):
for (var i = 0; i < myArray.length; i++)
{
scriptThread.appendTextToConsole(myArray[i]);
}
Last edit: Stefan Zieker 2015-02-09