Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.66 KB

Project.Application.ProjectBeforeResourceChange.md

File metadata and controls

43 lines (27 loc) · 1.66 KB
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.ProjectBeforeResourceChange event (Project)
project-server
Project.Application.ProjectBeforeResourceChange
d676f2c7-8857-70d7-41c6-4c505a0bcbcc
06/08/2017
medium

Application.ProjectBeforeResourceChange event (Project)

Occurs before the user changes the value of a resource field.

Syntax

expression.ProjectBeforeResourceChange (res, Field, NewVal, Cancel)

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
res Required Resource The resource whose field is being changed.
Field Required Long 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.
Cancel Required Boolean 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.

The ProjectBeforeResourceChange event doesn't occur when timescaled data changes, when a baseline is cleared, when an entire resource 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]