CopyItem (NotesDocument - LotusScript®)

Given an item, copies it into the current document and optionally assigns the copied item a new name.

Defined in

NotesDocument

Syntax

Set notesItem = notesDocument .CopyItem( item , newName$ )

OR

Call notesDocument .CopyItem( item , newName$ )

Use the Call statement when the program does not require the return value. Use the Set statement if the program requires the return value. Both statements yield the same results for this method.

Parameters

item

A NotesItem. The item, usually from another document, that you want to copy. If you specify Nothing, this method generates an error.

newName$

String. The name to assign to the copied item. Specify an empty string ("") to retain the item's existing name.

Return value

notesItem

A NotesItem. A copy of the specified item, identical except for its newName$.

Example