Compartilhar via


Propriedade LookupTableEntry.FullName (Project)

Obtém o nome completo do nível especificado e dos níveis pai de LookupTableEntry para o código de estrutura de tópicos, completo com a cadeia de caracteres separadora entre os níveis. Cadeia de caracteres somente leitura.

Sintaxe

expressão. Fullname

Expressão Uma variável que representa um objeto LookupTableEntry .

Exemplo

O exemplo de macro CreateLocationOutlineCode define três níveis de LookupTableEntry para um código de estrutura de tarefas personalizado denominado local. Depois que a macro CreateLocationOutlineCode é executada, inserindo a seguinte linha na janela imediata do Editor do Visual Basic (VBE) retorna o resultado é mostrado.

Print ActiveProject.OutlineCodes.Item(1).LookupTable.Item(4).FullName 
WA.KING.RED

Veja a seguir a macro CreateLocationOutlineCode.

Sub CreateLocationOutlineCode() 
    Dim objOutlineCode As OutlineCode 
    On Error GoTo ErrorHandler 
 
    Set objOutlineCode = ActiveProject.OutlineCodes.Add( _
        pjCustomTaskOutlineCode1, "Location") 
 
    objOutlineCode.OnlyLookUpTableCodes = True 
 
    DefineLocationCodeMask objOutlineCode.CodeMask 
    EditLocationLookupTable objOutlineCode.LookupTable 
 End 
 
ErrorHandler: 
    MsgBox "CreateLocationOutlineCode(): Error Number: " 
 & Err.Number & _ 
    vbCrLf & " Error Description: " & Err.Description 
End Sub 
 
 
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 
 
 
Sub EditLocationLookupTable(objLookupTable As LookupTable) 
    Dim objStateEntry As LookupTableEntry 
    Dim objCountyEntry As LookupTableEntry 
    Dim objCityEntry As LookupTableEntry 
 
    Set objStateEntry = objLookupTable.AddChild("WA") 
    objStateEntry.Description = "Washington" 
 
    Set objCountyEntry = objLookupTable.AddChild("KING", _
        objStateEntry.UniqueID) 
    objCountyEntry.Description = "King County" 
 
    Set objCityEntry = objLookupTable.AddChild("SEA", _
        objCountyEntry.UniqueID) 
    objCityEntry.Description = "Seattle" 
 
    Set objCityEntry = objLookupTable.AddChild("RED", _
        objCountyEntry.UniqueID) 
    objCityEntry.Description = "Redmond" 
 
    Set objCityEntry = objLookupTable.AddChild("KIR", _
        objCountyEntry.UniqueID) 
    objCityEntry.Description = "Kirkland" 
End Sub

Suporte e comentários

Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.