CodeMaskLevel Object

Project Developer Reference

Represents a level in the code mask in an outline code definition. The CodeMaskLevel object is a member of the CodeMask collection.

Using the CodeMaskLevel Object

The following example adds three levels to a code mask.

  Sub DefineLocationCodeMask(objCodeMask As CodeMask)
    
   objCodeMask.Add _
        Sequence:=pjCustomOutlineCodeUppercaseLetters, _
        Length:=2, Separator:="."
    
   objCodeMask.Add _
        Sequence:=pjCustomOutlineCodeUppercaseLetters, _
        Separator:="."
    
   objCodeMask.Add _
        Sequence:=pjCustomOutlineCodeUppercaseLetters, _
        Length:=3, Separator:="."
End Sub

See Also