Table of contents

Task.Flag20 属性 (项目)Task.Flag20 Property (Project)

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

获取或设置任务标志自定义域的值。读/写variant 类型的值Gets or sets the value of a task flag custom field. Read/write Variant.


表达式标记 20expression. Flag20

表达式_一个表示任务对象的变量。_expression A variable that represents a Task object.


下面的示例删除了标志 1设置为True的所有任务。The following example deletes all the tasks that have the Flag1 set to True.

Sub DeleteNonEssentialTasks() 

 Dim T As Task ' Task object used in For Each loop 

 ' Delete nonessential tasks in the active project. 
 For Each T In ActiveProject.Tasks 
 If Not (T Is Nothing) Then 
 If T.Flag1 = True Then T.Delete 
 End If 
 Next T 

End Sub
© 2018 Microsoft