How to create a bookmark using lotusScript? HELP!

Hi. How do i create a bookmark, which is to save a doc as a preference in the document i have created? The doc is send as a email. I have created a button for the bookmark but what will be the source code for that? Thanks alot if someone could help.

Subject: How to create a bookmark using lotusScript? HELP!!!

I think you are looking for AppendDocLink…

’ Create and Send Memo

mailDoc.Form = “Memo”

mailDoc.From = “Some Guy”

mailDoc.ReplyTo = “Some Other Guy”

mailDoc.SendTo = sendToList

mailDoc.CopyTo = copyToList

mailDoc.Importance = “1”

mailDoc.Subject = “How to append doc Links.”

Dim rtitem As NotesRichTextItem

Set rtitem = New NotesRichTextItem( mailDoc, “Body” )

Call rtitem.AppendText( " Form: " + form + Chr(13) )

Call rtitem.AppendText( " Title: " + title + Chr(13) )

Call rtitem.AppendText( " Modified: " + modifiedDate + Chr(13) )

Call rtitem.AppendText( " Link: " )

Call rtitem.AppendDocLink( someNotesDoc )

Call mailDoc.Send(False)