Turning NDL into a doclink in a Rich Text field

If I have a doclink as a string eg

<REPLICA 80256FFE:0068F9B3>

CN=FRED/OU=IT/O=ACME

Big Database

how do I get this to appear as a doclink in a rich text field ??

I am trying to do this via LotusScript …

TIA,

Mark.

Subject: Turning NDL into a doclink in a Rich Text field

Use the replicaID to get the database as a NotesDatabase (using OpenByReplicaID on a database object created using New and empty strings), then use AppendDoclink.

Subject: notesRichTextItem.AppendDocLink

Use notesRichTextItem.AppendDocLink. The first paramater for it is the object ( NotesDatabase, NotesView or NotesDocument ) you wish to link to so that means you need to parse the NDL to get the information to get a handle on the appropriate object (which appears to be a database in your case).