Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 2.1 KB

Project.Application.ProjectBeforeTaskChange2.md

File metadata and controls

44 lines (27 loc) · 2.1 KB
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.ProjectBeforeTaskChange2 event (Project)
project-server
Project.Application.ProjectBeforeTaskChange2
00992e39-dcbd-3826-4ce6-e2be55dc9c2c
06/08/2017
medium

Application.ProjectBeforeTaskChange2 event (Project)

Occurs before the user changes the value of a task field. Uses the EventInfo object parameter.

Syntax

expression.ProjectBeforeTaskChange2 (tsk, Field, NewVal, Info)

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
tsk Required Task The task whose field is being changed.
Field Required PjField The field being changed. If more than one field is changed by the user, the event is fired for each field changed. Can be one of the PjField constants.
NewVal Required Variant The new value for the field specified with Field.
Info Required EventInfo EventInfo.Cancel is False when the event occurs. If the event procedure sets this argument to True, the value for the field specified with Field is not changed.

Return value

Nothing

Remarks

Project events don't occur when the project is embedded in another document or application. For more information and sample code for creating and testing an event handler, see Using Events with Application and Project Objects.

The ProjectBeforeTaskChange2 event doesn't occur when timescaled data changes, when constraint data in the Task Details Form changes, when a task is split by manipulating its task bar on the Gantt Chart, when changes are made to outline level or outline number, when a baseline is saved, when a baseline is cleared, when an entire task row is pasted, during resource pool operations, when inserting or removing a subproject, or when changes have been made by using a custom form.

[!includeSupport and feedback]