Skip to Content
0
Former Member
Oct 10, 2005 at 04:53 AM

Values in the drop down box

25 Views

Dear all,

I was trying to put the values in the dropdown box but facing problem..

Two error are coming:-

1. ArrayList cannot be resolved

2. the method add() is not suitable..

public void wdDoInit()

{

//@@begin wdDoInit()

String[] y =

new String[] {

"January",

"February",

"March",

"April",

"May",

"June",

"July",

"August",

"September",

"October",

"November",

"December",

};

<b>List x = new ArrayList();</b> for (int i = 0; i < y.length; ++i) {

Pls suggest.

Regds,

Anup. IPrivateSocreationappsView.IXElement month =

wdContext.createXElement();

month.setY(y<i>);

<b>x.addItem(month</b>);