Examples: SaveNewVersion method

This form action script saves the changes that have been made to the current document. The changes are saved in a new document, which becomes either a response document to the original, the parent document of the original, or a sibling document of the original, depending on the version option on the form.

Sub Click(Source As Button)
  Dim workspace As New NotesUIWorkspace
  Dim uidoc As NotesUIDocument
  Set uidoc = workspace.CurrentDocument
  Call uidoc.SaveNewVersion
End Sub