Examples: IsProhibitDesignRefresh property (NotesView - LotusScript®)

This agent toggles whether a view design can be refreshed.

Sub Initialize
  Dim session As New Notessession
  Dim db As NotesDatabase
  Dim view As NotesView
  Set db = session.CurrentDatabase
  Set view = db.GetView("All")
  If view.IsProhibitDesignRefresh Then
    view.IsProhibitDesignRefresh = False
  Else
    view.IsProhibitDesignRefresh = True
  End If
  Messagebox view.IsProhibitDesignRefresh,, "IsProhibitDesignRefresh"
End Sub