title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Shift.Index property (Project) |
project-server |
|
dae37122-f745-2728-5004-b3b3d7ad188a |
06/08/2017 |
medium |
Gets the index of a Shift object in the containing object. Read-only Integer.
expression.Index
expression A variable that represents a Shift object.
Following are the objects that can contain Shift objects:
-
Day
-
Month
-
WeekDay
-
WorkWeekDay
-
Year
Shift objects are accessed using the Shift1... Shift5 properties. Because Project defines five shifts, the Index property can have only the values 1 through 5.
The Index properties of different objects are used in similar ways. For an example, see the Index property of the Project object.
The following command in the Immediate window of the VBE prints the value 2.
? ActiveProject.Calendar.WeekDays.Item(3).Shift2.Index
[!includeSupport and feedback]