Any ideas why this doens't work?
var RoomNum=new Array(5)
RoomNum[0]="1";
RoomNum[1]="2";
RoomNum[2]="3";
RoomNum[3]="4";
RoomNum[4]="5";
RoomNum[5]="6";
if (DropDownList1.rawValue == 0) {
DropDownList4.addItem (RoomNum);
}
(Instead of giving me the 6 numbers, I just get the word "empty")
Thanks so much!
Alan
var RoomNum=new Array(5)
var iter = 0
RoomNum[0]="1";
RoomNum[1]="2";
RoomNum[2]="3";
RoomNum[3]="4";
RoomNum[4]="5";
RoomNum[5]="6";
if (DropDownList1.rawValue == 0) {
while (iter < 5) {
DropDownList4.addItem( RoomNum[iter]);
iter = iter + 1;
}
}
My guess on your assignment is that 'RoomNum' in and of itself is indeed empty - thus your result. Add each drop box item as above, and it shoulda-oughta work. Good luck!