How to catch values from List box and send mail

Hi ,

its very urgent ,

i have to send copyto mail to all the user’s who were listed in the list box . as everyone knows that in list box number of user’s can be anything so when i try for dynamic array it wont work

dim Dynamicarray( ) as string

Dynamicarray( )=doc.listbox(0)

maildoc.Copyto=Dynamicarray

i use this is agent but it throws error illegal refrence to array or list .

where i am wrong , as listbox is the name of list box field

and also in that i want to send a link of another form .

plz its urgent

Subject: How to catch values from List box and send mail

Try maildoc.Copyto = doc.ListBox

Subject: RE: How to catch values from List box and send mail

no still it throws error illegal refrence to array or list

Subject: RE: How to catch values from List box and send mail

Remove all those arrasys and Just keep (maildoc.CopyTo = doc.Listboxit will work