Menu

QtScript

Anonymous
2015-02-09
2015-02-09
  • Anonymous

    Anonymous - 2015-02-09

    How can i iterate over all elements in an array?

     
    • Stefan Zieker

      Stefan Zieker - 2015-02-09

      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

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.