Lotusscript: OpenDatabaseByReplicaID method no longer supported?

I tried to use the following LotusScript sequence in the QueryOpenDocument event off a view:

. . .

Dim NDir As NotesDBDirectory

Set NDir = SE.GetDBDirectory( db.server )

Set DDB= NDir.OpenDatabaseByReplicaID( note.RepID(0))

. . .

The designer raises an error:

17: Not a member: OPENDATABASEBYREPLICAID

And indeed its also not listed in the Auto List member Popup, but still mentioned in the help !

Joe Herrmann


For a successful technology, reality must take precedence over public relations, for nature cannot be fooled. (Richard P. Feynman)

Subject: Supported in COM only

The method OpenDatabaseByReplicaID of NotesDBDirectory has this note in the help:Note This method is supported in COM only. For LotusScript, use the OpenByReplicaID method in NotesDatabase.

In LotusScript, try:

Dim DDB As New NotesDatabase(“”, “”)

If DDB.OpenByReplicaID(db.Server, note.RepID(0)) Then

Print( DDB.Title & " was successfully opened" )

Else

Print( “Unable to open database” )

End If

Subject: OpendatabaseByReplicaID

Thanks a lot Kim !Have not seen it in the help !