Resource

public Class

An Element Resource is a named person/task pair with timing constraints and percent complete indicators. Use this to manage the work associated with delivering an Element.

Associated table in .EAP file: t_objectresources

Resource Attributes

Attribute

Type

Notes

ActualHours

Long

Read/Write. Time already expended on the task, in hours, days or other units.

DateEnd

Date

Read/Write. Expected end date.

DateStart

Date

Read/Write. Date to start work.

ExpectedHours

Long

Read/Write. The total expected time the task might run, in hours, days or other units.

History

String

Read/Write. Gets or sets history text.

Name

String

Read/Write. Name of resource (for example, person's name).

Notes

String

Read/Write. Descriptive notes.

ObjectType

ObjectType

Read only. Distinguishes objects referenced through a Dispatch interface.

PercentComplete

Long

Read/Write. Current percent complete figure.

Role

String

Read/Write. Role they play in implementing the element.

Time

Long

Read/Write. Time expected; numeric indicating number of days.

Resource Methods

Method

Type

Notes

GetLastError ()

String

Returns a string value describing the most recent error that occurred in relation to this object.

This function is rarely used as an exception is thrown when an error occurs.

Update ()

Boolean

Update the current Resource object after modification or appending a new item. If false is returned, check the GetLastError function for more information.