Resource

Return to Introduction  Previous page  Next page

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

Name

String

Read/Write.  Name of resource (eg. person's name).

Role

String

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

Time

Long

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

Notes

String

Read/Write.  Descriptive notes.

PercentComplete

Long

Read/Write.  Current percent complete figure.

DateStart

Date

Read/Write.  Date to start work.

DateEnd

Date

Read/Write.  Expected end date.

ExpectedHours

Long

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

ActualHours

Long

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

History

String

Read/Write.  Gets or sets history text.

ObjectType

ObjectType

Read only.  Distinguishes objects referenced through a Dispatch interface.

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 since 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.