abdul_rp
13 years agoContributor
How to get the hierarchy of the individual objects from the Aliases
Hi,
I am able to get the individual Object name from the following
code from Namemapping.
How to get the hierarchy of the individual object from Aliases?
Sub
GetNextAlias(AliasObject)
Dim
iteratorProperties
Dim
iteratorProp
Set
iteratorProperties = aqObject.GetProperties(AliasObject)
While
iteratorProperties.HasNext
Set
iteratorProp = iteratorProperties.
Next
'ValueType 29 appears to correspond with other objects from the name mapping or alias trees
If
(iteratorProp.ValueType = 29)
Then
Log.AppendFolder(iteratorProp.Name)
GetNextAlias(aqObject.GetPropertyValue(AliasObject,iteratorProp.Name))
Log.PopLogFolder
End
If
Wend
End
Sub
Sub
test()
Log.AppendFolder(
"Name Mapping"
)
Call
GetNextAlias(NameMapping.Sys)
Log.PopLogFolder
Log.AppendFolder(
"Aliases"
)
Call
GetNextAlias(Aliases)
Log.PopLogFolder
End
Sub
Regards,
Abdul