Insert not Append to Text List

Unfortunately, I cannot locate an Inserttotextlist method. :slight_smile: I’m needing to insert a new alias in users’ person documents (shortname field). Ideally for us, the new alias would be 1st in the list vs. appended or last. What’s the best method to accomplish?


newAlias = CStr(DataArray(x,2))
Set item = naDoc.Getfirstitem(“ShortName”)
Call item.Appendtotextlist(newAlias)
Call naDoc.Save(True,False)

Subject: There is no such method, but…

…the same can easily be achieved using built-in LotusScript functions.


ReDim newValues(0 to 0) As String
newValues(0) = DataArray(x, 2)
Call naDoc.ReplaceItemValue(“ShortName”, FullTrim(ArrayAppend(newValues, naDoc.GetItemValue(“ShortName”))))

Subject: RE: Insert not Append to Text List

Jochen, thanks, worked perfectly!