ViewsSingle.Add Method

Project Developer Reference

Adds a ViewSingle object to ViewsSingle collection.

Syntax

expression.Add(Name, Screen, ShowInMenu, Table, Filter, Group, HighlightFilt)

expression   A variable that represents a ViewsSingle object.

Parameters

Name Required/Optional Data Type Description
Name Required String The name of the view.
Screen Optional Long The project view. Can be one of the PjViewScreen constants. The default value is pjGantt.
ShowInMenu Optional Boolean True if Project Server adds the single-pane view to the View menu. The default value is False.
Table Optional Variant Specifies the table to be used by the view. This value is ignored if the view specified with the Screen argument does not use tables.
Filter Optional Variant Specifies the filter to be used on the view.
Group Optional Variant Specifies the group to be used by the view. If a group is required for the view, but none is specified, the default is No Group. This value is ignored if the view specified with the Screen argument does not use groups.
HighlightFilt Optional Boolean True if the filter applied is a highlight filter. The default value is False.

Return Value
ViewSingle