Application.CustomOutlineCodeEdit Method
Project Developer Reference |
Edits a custom outline code definition.
Syntax
expression.CustomOutlineCodeEdit(FieldID, Level, Sequence, Length, Separator, OnlyLookUpTableCodes, OnlyCompleteCodes, LookupTableLink, OnlyLeaves, MatchGeneric, RequiredCode, LookupDefault, DefaultValue, SortOrder)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
FieldID | Required | Long | Specifies the custom outline code to edit. Can be one of the PjCustomField constants. |
Level | Optional | Variant | Long. The level of code mask to edit. The default value is one greater than the highest level currently specified for the field. |
Sequence | Optional | Long | The sequence for the level specified in Level. Can be one of the PjCustomOutlineCodeSequence constants. The default value is pjCustomOutlineCodeNumbers. |
Length | Optional | Variant | Specifies the length for a given level. Can be the string "Any" or an integer value from 1 through 255. The default value is "Any". |
Separator | Optional | String | The character that separates the level specified in Level from the next. Can be one of ".", "-", "+", or "/". The default value is ".". |
OnlyLookUpTableCodes | Optional | Boolean | True if only codes listed in the lookup table can be used. The default value is False. |
OnlyCompleteCodes | Optional | Boolean | True if only codes with values at all levels of the mask can be used. The default value is False. |
LookupTableLink | Optional | Long | A value that represents another outline code. Can be one of the PjCustomField constants. If LookupTableLink is omitted, it is assumed that no outline code alias is desired. |
OnlyLeaves | Optional | Boolean | True if only outline code values without children can be selected. |
MatchGeneric | Optional | Boolean | True if Microsoft Office Project 2007 uses this code as an outline code in the Resource Substitution Wizard. |
RequiredCode | Optional | Boolean | True if the outline code must be present before save is allowed. |
LookupDefault | Optional | Variant | NOT available at this time. |
DefaultValue | Optional | Variant | NOT available at this time. |
SortOrder | Optional | Variant | NOT available at this time. |
Return Value
Boolean
Remarks
If only the FieldID argument is specified, the CustomOutlineCodeEdit method brings up the Custom Outline Code Definition dialog box for the specified custom outline code.
The LookupTableLink, OnlyLeaves, MatchGeneric, and RequiredCode arguments are only available in Microsoft Office Project 2007.
Example
This example creates a two-level outline code for tasks. Using the default values for the method, the first line specifies that the first level uses two-digit codes, sorted by number, and is separated from the next level by the "-" character. The second line specifies that uppercase letters, sorted alphabetically, are used for the second level and are separated from the next level by the default "." character. It also specifies that only two-level codes may be used.
Visual Basic for Applications |
---|
|
See Also