Copy link to clipboard
Copied
Hi all,
When I invoke a scrollbox in ExtendScript, FrameMaker crashes.
For e.g.,
var myArray=new Array("Item 1","Item 2","Item 3");
var choice = ScrollBox ("Choose an item", myArray, 0);
Alert ("You chose " + myArray[choice], Constants.FF_ALERT_OK_DEFAULT);
does not work. Is it a bug or I am doing something wrong here?
Regards,
Bruno
1 Correct answer
Bruno,
You should replace the first line in your script with this :
ar myArray=new Strings("Item 1","Item 2","Item 3"); //using Strings datatype
Vikash
FM Engineering Team
Copy link to clipboard
Copied
Bruno,
You should replace the first line in your script with this :
ar myArray=new Strings("Item 1","Item 2","Item 3"); //using Strings datatype
Vikash
FM Engineering Team
Copy link to clipboard
Copied
Better yet, you can use an array literal:
var myArray = ["Item1","Item2","Item3"];
Rick Quatro

