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

Resource.Flag17 属性 (项目)Resource.Flag17 Property (Project)

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

如此如果与资源关联的标记设置。读/写variant 类型的值True if the flag associated with a Resource is set. Read/write Variant.

语法Syntax

表达式标记 17expression. Flag17

表达式_一个表示资源对象的变量。_expression A variable that represents a Resource object.

示例Example

下面的示例删除了标志 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