4 Replies Latest reply on Feb 9, 2015 1:27 PM by Bernd Alheit

    global.srchVals[i] = {srchTrm: trim(""+myArr[i]).valueAsString, mode: 0, results: []};

    lindaeliseruble Level 1


      Hello,

       

      I'm trying to understand some Acrobat JavaScript and I was hoping to get an answers here.

       

       

      Here is the code:

       

       

      global.srchVals = [{}]
      for (i = 0; i<= nNumWords; i++) {
        global.srchVals[i] = {srchTrm: trim(""+myArr[i]).valueAsString, mode: 0, results: []};

      }

       

       

       

      To be specific, I don't understand what the format with the colon after the words "srchTrm:" and "mode:" are.

       

       

      I'm new to this and would appreciate it if someone could explain what the code does or let me know where to read about that the code shown above does.

       

       

      Thank you.

       

       

      Linda