Hello all,
I have produced a windows form to appear when a script is run from Vegas,. It will have various option on it from which the user can choose. I want to include a combo box with about 5-6 different options. The options differ accordig to the computer the script is run on so I do not want to hard code it.
I can add a combo box and hard code info as follows:
private var comboBox : System.Windows.Forms.ComboBox;
this.comboBox = new System.Windows.Forms.ComboBox();
comboBox.items.add("boo");
comboBox.items.add("boo1");
comboBox.items.add("boo2");
However I want to use the addRange option.
In otherwords pass the combo box an array of string
ie
mystr = new String[] {"boo","boo1","boo2"};
comobBox.items.AddRange(mystr);
I havent got to the population of mystr but I just want to get this working first.
I gets errrors when I try and run the script from Vegas because it expects a semi-colon. Can you not have an array of String in JScript? If you can where am i going wrong?
Thanks in advance
Richard
I have produced a windows form to appear when a script is run from Vegas,. It will have various option on it from which the user can choose. I want to include a combo box with about 5-6 different options. The options differ accordig to the computer the script is run on so I do not want to hard code it.
I can add a combo box and hard code info as follows:
private var comboBox : System.Windows.Forms.ComboBox;
this.comboBox = new System.Windows.Forms.ComboBox();
comboBox.items.add("boo");
comboBox.items.add("boo1");
comboBox.items.add("boo2");
However I want to use the addRange option.
In otherwords pass the combo box an array of string
ie
mystr = new String[] {"boo","boo1","boo2"};
comobBox.items.AddRange(mystr);
I havent got to the population of mystr but I just want to get this working first.
I gets errrors when I try and run the script from Vegas because it expects a semi-colon. Can you not have an array of String in JScript? If you can where am i going wrong?
Thanks in advance
Richard