Skip to main content
Participant
February 1, 2012
Answered

Issue with ScrollBox - Crashes Framemaker 10

  • February 1, 2012
  • 1 reply
  • 997 views

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

This topic has been closed for replies.
Correct answer Chintu_123

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

1 reply

Chintu_123Correct answer
Inspiring
February 1, 2012

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

frameexpert
Community Expert
Community Expert
February 1, 2012

Better yet, you can use an array literal:

var myArray = ["Item1","Item2","Item3"];

Rick Quatro

www.frameexpert.com