If Left(session.notesversion, 9) = "Release 4" Then
If ws.Dialogbox("Dialog: Update Existing YesNoAll", True, True, True , False, False, False, title ,Ddoc) Then
UpdatePrompt = Ddoc.UpdateResult(0)
Else
UpdatePrompt = "No"
End If
Else
Dim values(2) As String
values(0) = "Update this document"
values(1) = "Update all existing documents"
values(2) = "Do not update this document"
Dim answer As String
answer = ws.Prompt( PROMPT_OKCancelList, "Update Existing Document?", title, "" , Values )
If answer = "Update this document" Then
UpdatePrompt = "Yes"
Elseif answer = "Update all existing documents" Then
UpdatePrompt = "All"
Else
UpdatePrompt = "No"
End If
End If