Previous | Next | (P-PDF) JavaScript
Topic: array value
Conf: (P-PDF) JavaScript, Msg: 27795
From: JJJ
Date: 9/29/2001 07:14 AM
Can anybody advise me where the problem is in this code, where the value of Forms1 is either a string or an array of strings? What I want is for each string in the array, for a document to open and import an FDF sequentially, i.e., open and import for string 1, open and import for string 2, etc.
var vBox = this.getField("Forms1");
for (var i = 0; i < vBox.length; i++)
{var Doc = app.openDoc("/c/Forms/New/" + vBox[i].value + ".pdf");
var cData = this.getField("ClientData");
Doc.importAnFDF(cData.value);};