Entering multiple field values using lotusscript?

How do I enter multiple values into a field using lotusscript?

For Example:

I want the field ExcludeFromView to have two values “D” and “S”

ExcludeFromView =???

Subject: Entering multiple field values using lotusscript?

you’ll have to use either an array to assign it multiple values or the NotesItem.AppendToTextList method

Subject: RE: Entering multiple field values using lotusscript?

As a followup to Martijn’s note, you can use an array without having to declare an array variable by using the split function.

calentry.ExcludeFromView = split(“D,S”, “,”)

Subject: RE: Entering multiple field values using lotusscript?

thank you both very much!!