Table of contents

Assignment.Flag18 属性 (项目)Assignment.Flag18 Property (Project)

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

如此如果与工作分配相关联的标记设置。读/写variant 类型的值True if the flag associated with an Assignment is set. Read/write Variant.


表达式标记 18expression. Flag18

表达式_表示一个赋值的对象变量。_expression A variable that represents an Assignment 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