CustomFieldValueListAdd Method

Adds an item to the value list for a custom field.

Syntax

expression**.CustomFieldValueListAdd(FieldID, Value, Description, Phonetic, Index, FieldDefault)**

*expression   *     Optional. An expression that returns an Application object.

PjCustomField

pjCustomProjectEntCost1-10 pjCustomResourceOutlineCode1-10
pjCustomProjectEntDate1-30 pjCustomResourceStart1-10
pjCustomProjectEntDuration1-10 pjCustomResourceText1-30
pjCustomProjectEntFlag1-20 pjCustomTaskCost1-10
pjCustomProjectEntNumber1-40 pjCustomTaskDate1-10
pjCustomProjectEntOutlineCode1-30 pjCustomTaskDuration1-10
pjCustomProjectEnt1-40 pjCustomTaskEntCost1-10
pjCustomResourceCost1-10 pjCustomTaskEntDate1-30
pjCustomResourceDate1-10 pjCustomTaskEntDuration1-10
pjCustomResourceDuration1-10 pjCustomTaskEntFlag1-20
pjCustomResourceEntCost1-10 pjCustomTaskEntNumber1-40
pjCustomResourceEntDate1-30 pjCustomTaskEntOutlineCode1-30
pjCustomResourceEntDuration1-10 pjCustomTaskEntText1-40
pjCustomResourceEntFlag1-20 pjCustomTaskFinish1-10
pjCustomResourceEntNumber1-40 pjCustomTaskFlag1-20
pjCustomResourceEntOutlineCode1-30 pjCustomTaskNumber1-20
pjCustomResourceEntText1-40 pjCustomTaskOutlineCode1-10
pjCustomResourceFinish1-10 pjCustomTaskStart1-10
pjCustomResourceFlag1-20 pjCustomTaskText1-30
pjCustomResourceNumber1-20  

Value    Optional String. The value to add to the list.

Description    Optional String. A description of the value.

Phonetic    Optional String. The phonetic spelling of Value, used for sorting into syllabary order in Japanese. For languages other than Japanese, Phonetic is ignored.

Index    Optional Integer. The position to add the item specified with Value, relative to other items in the value list. If Index is n + 2 or greater, where n is the number of existing items, the item is added at n + 1. The default value is n + 1.

FieldDefault    Optional Boolean. True if the value specified with Value functions as the default for the custom field. The default value is False.

Applies to | Application Object

See Also | CustomFieldValueList Method | CustomFieldValueListDelete Method | CustomFieldValueListGetItem Method