Facing Problem in Forall

Hi all,

i have a multivalue field which stores names of people.

i want to set these field value in other document using forall statement in lotus script.

i have using the following code…

Forall name1 In item.Values(0)

Call uidoc.FieldSetText(“Names”,name1)

End Forall

But it only attach the last name of the list, i want all

the name of the list to be set in my field…

so, please suggest me what i have to do?

Regards

Subject: Facing Problem in Forall

Read the Designer help for FieldSetText method

u will have to make a string of all the values in the List and add set the string in the UIDOC.

Subject: Facing Problem in Forall

I suppose there is problem in your code.

instead of writting

forall name1 in item.value(0)

write

forall name1 in item.value

Ashish

Subject: Facing Problem in Forall

Use FieldAppendText instead if you wish to keep appending values to the same field without over writing the existing value there (which is what you are doing currently each time through the loop).