Previous | Next | (P-PDF) JavaScript
Topic: Acrobat 5 crashes - asked on Adobe forum
Conf: (P-PDF) JavaScript, Msg: 28238
From: Jub
Date: 10/7/2001 02:28 AM
CCJ,
>function ToAccount() { var l = getField
>"newaccounts"); var v = l.insertItemAt(account[0]
>[1],account[0][0],0) }
>The JavaScript in the Bookmark
>var account = new Array(); account[0] = new Array
>("4193","The Green Bottle Brewery"); ToAccount
>(account);
Not sure that this will make a difference, but
I have found several examples of things which
weren't quite kosher but worked fine in V4,
only to have them not work in V5,
I assume because the V5 spec is much tighter.
Anyway, you are calling your function ToAccount
and passing in an argument, 'account'.
But this arg is not defined in the function
declaration.
You might want to try it with the function
looking something like this...
function ToAccount(MyArray)
{
var l = getField("newaccounts");
var v = l.insertItemAt(MyArray[0][1],MyArray[0][0],0);
}
I also added an open parenthesis before "newaccounts"
- not sure if this was missing from your original func...
HTH
Jub