Hi All,Following is my code:
Dim newDoc As NotesDocument
Dim doc As NotesDocument
Dim uiview As NotesUIView
Dim dc As NotesDocumentCollection
Dim db As NotesDatabase
Dim wks As NotesUIWorkspace
Set db = session.CurrentDatabase
Set dc = db.UnprocessedDocuments
Set newDoc = New NotesDocument(db)
If Not dc.Count = 1 Then
getMsg("smSelectOneDoc")
Exit Sub
Else
Set doc = dc.GetFirstDocument
Call doc.CopyAllItems (newDoc)
newDoc.docRelKeyMT(0) = Evaluate("@Unique",newDoc)
'newDoc.jpSysKeyMT(0) = Evaluate("@Right(@Unique;6)")
Call newDoc.Save(True,False)
End If
Everything works ok except the Evaluate method which I want to evaluate the formula (@Right(@Unique;6)).When I say Evaluate of this formula it says Illegal Use of Property.
The document is created fine because it saves it when I commented out the Evaluate statements.
Can anyone please provide some pointers?
Thanks,
Sreeni.