• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Issue with ScrollBox - Crashes Framemaker 10

New Here ,
Feb 01, 2012 Feb 01, 2012

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

TOPICS
Scripting

Views

853

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Feb 01, 2012 Feb 01, 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

Votes

Translate

Translate
Feb 01, 2012 Feb 01, 2012

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2012 Feb 01, 2012

Copy link to clipboard

Copied

LATEST

Better yet, you can use an array literal:

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

Rick Quatro

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines