我有这个功能..我想在每次添加mWrkFlwDoc.workFlow(0)之前向 mVal 添加一个新行
函数 workFlowHistory() workFlowHistory=False
Dim mWrkFlwVw As NotesView
Dim mWrkFlwColl As NotesDocumentCollection
Dim mWrkFlwDoc As NotesDocument
Dim mVal As String
Set mWrkFlwVw = gDB.GetView("lkpWorkFlow")
Set mWrkFlwColl = mWrkFlwVw.GetAllDocumentsByKey(gDoc.empName(0),True)
Set mWrkFlwDoc = mWrkFlwColl.GetFirstDocument
mVal = ""
Do While Not mWrkFlwDoc Is Nothing
If mWrkFlwDoc.documentID(0) = gDoc.documentID(0) Then
***mVal =mVal+ mWrkFlwDoc.workFlow(0)*** ' add new line before adding mWrkFlwDoc.workFlow(0)
End If
Set mWrkFlwDoc = mWrkFlwColl.GetNextDocument(mWrkFlwDoc)
Loop
gDoc.workFlowHistory = mVal
gDoc.save True,True
workFlowHistory=True
结束功能
我阅读了有关 AddNewLine 方法的信息,但它在富文本项中插入了新行……我如何使用字符串数据类型、文本字段来处理它?