CreateProjectTask method

Creates a project task within a project schedule.

Syntax


C++

HRESULT CreateProjectTask (
   BSTR Name,
   BSTR Description,
   ERUTextFormat DescriptionFormat,
   VARIANT PredecessorTasks,
   DATE StartDate,
   DOUBLE Duration,
   IERUMemberSet* Resources,
   BSTR Category,
   BSTR Note,
   LONG CreateOptions,
   
IERUItem** ppProjectTask)

Scripting languages

Set ProjectTask = Object.CreateProjectTask (
   Name as String,
   Description as String,
   DescriptionFormat as ERUTextFormat,
   PredecessorTasks as Variant,
   StartDate as Date,
   Duration as Double,
   Resources as IERUMemberSet,
   Category as String,
   Note as String,
   CreateOptions as Long)

Parameters


Name

The name for the project task.

Description

A description for the project task.

DescriptionFormat

Indicates whether the Description parameter is in HTML or plain text format. See ERUTextFormat for values for this parameter.

PredecessorTask

A collection or safearray of task IDs that must be completed before this task. Specify 0 to signify no predecessor.

StartDate

The start date for the project task.

Duration

The duration of the project task (in days).

Resources

The human resources for the project task, as an IERUMemberSet interface.

Category

The category for the project task.

Note

A note for the project task.

CreateOptions

One or more values from the ERUCreateOption enumeration, logically OR'ed together. This parameter is optional.

ppProjectTask

Upon return, an IERUItem interface pointer to a newly-created project task.

Return value


C++

The return code.

Scripting languages

Upon return, an IERUItem interface pointer to a newly-created project task.

Home

Interface

IERUProjectSchedule