Application.BoxShowHideFields Method (Project)

Shows or hides the task data fields of the active Network Diagram.

Syntax

expression .BoxShowHideFields(Show)

expression A variable that represents an Application object.

Parameters

Name

Required/Optional

Data Type

Description

Show

Optional

Boolean

True if the fields of Network Diagram boxes are displayed in the active Network Diagram. False if only task ID numbers are displayed. The default value is True if the active Network Diagram isn't showing fields and False if it is.

Return Value

Boolean

Example

The following example first hides the fields of Network Diagram boxes and then displays them.

Sub BoxShow_HideFields() 
 
 Dim Result As Boolean 
 
 'Activate the Network Diagram view 
 ViewApply Name:="Network Diagram" 
 
 Result = BoxShowHideFields(False) 
 Result = BoxShowHideFields(True) 
 
End Sub