How can i identify if a task ist a summarytask / task group or a normal task?

M

mm10dev

How can i identify if a task ist a summarytask / task group or a
normal task? I tried

task.type

but i dont know if this is the right way. MSDN says

Task.Type Property
Project Developer Reference
Returns or sets how the units, duration, and work on a task are
calculated. Can be one of the following PjTaskFixedType constants:
pjFixedUnits, pjFixedDuration, or pjFixedWork. Read/write Long.

but i get on SUMMARYTASKS = 1 and on normal non group/summary tasks =
0.

is this right?

thanks
yavuz
 
J

Jack Dahlgren

Summary is a task property. You can read if it is true or false
As a very short example:

if task.summary then
msgbox "this is a summary task"
end if

-Jack Dahlgren
 
M

mm10dev

Great, thank you very much!

Summary is a task property. You can read if it is true or false
As a very short example:

if task.summary then
msgbox "this is a summary task"
end if

-Jack Dahlgren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top