Application.CustomFieldValueListAdd Method
Project Developer Reference |
Adds an item to the value list for a custom field.
Syntax
expression.CustomFieldValueListAdd(FieldID, Value, Description, Phonetic, Index, FieldDefault)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
FieldID | Required | Long | The custom field. Can be one of the PjCustomField constants. |
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. |
Return Value
Boolean
See Also