The filename$ parameter is not optional.
AddDatabase method
Adds a database to the workspace and highlights the icon, or highlights the icon if the database is already on the workspace.
Defined in
NotesUIWorkspace
Syntax
Call notesUIWorkspace.AddDatabase( server$ , filename$ )
Parameters
server$