Table of contents
TOC
折叠目录
展开目录

Exception.Shift4 属性 (项目)Exception.Shift4 Property (Project)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

获取一个班次对象,该对象代表日历例外日期的日、 月、 期、 工作日,或在整个一年中第四个工作班次。只读的班次Gets a Shift object representing the fourth work shift in a calendar exception for a day, month, period, weekday, or throughout a year. Read-only Shift.

语法Syntax

表达式Shift4expression. Shift4

表达式_一个表示异常对象的变量。_expression A variable that represents an Exception object.

示例Example

下例通过创建从上午 8 点到中午 12 点的班次,排定星期五半天的任务。The following example schedules a half-day of work on Fridays by creating a shift from 8 A.M. to noon.

Sub HalfDayFridays() 



 With ActiveProject.Calendar.WeekDays(pjFriday) 

 .Shift1.Start = #8:00:00 AM# 

 .Shift1.Finish = #12:00:00 PM# 

 .Shift2.Clear 

 .Shift3.Clear 

 End With 



End Sub

另请参阅See also

概念Concepts

异常对象Exception Object

© 2018 Microsoft