Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

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

$
0
0


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


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>