Click to See Complete Forum and Search --> : adding option to listbox in parent form


bgmiller
01-10-2003, 08:47 AM
Can some please help.

I'm trying to add a string to a list box in the parent form from the child for when the user clicks submit.

Here is what I have and it gives me an unknown exception!!!!

eval("opener.document.frmMarketingRecord.ActionItems.options[0] = new Option(ListBoxItem)");

Thanks

khalidali63
01-10-2003, 11:06 AM
you are missing parameters in the new Options(value,text,true,true);
is the correct format

or you can even do it simpler then that
opener.document.frmMarketingRecord.ActionItems.options[0].value=value;
opener.document.frmMarketingRecord.ActionItems.options[0].text=text;

Khalid