使用NotesRichTextDoclink.Remove时,每个人都无法删除doclink

问题描述 投票:1回答:1

使用NotesRichTextDoclink.Remove时,我无法删除doclink

这是我的代码。

enter image description here

  1. 从富文本字段名称“All”获取notesrichtextitem
  2. 将notesrichtextnavigator设置为doclink
  3. 将notesrichtextitemlink设置为last元素并调用remove

但......

在“全部”字段中没有删除!

之前:有5个doclink

enter image description here

之后:还有5个doclink!

enter image description here

请帮我。

谢谢。

lotus-notes lotusscript
1个回答
1
投票

可能是您忘记在删除链接后保存文档,因为您的代码看起来很好。

在代码末尾添加以下行:

Call doc.Save(False, False)
© www.soinside.com 2019 - 2024. All rights reserved.