Novell is now a part of Micro Focus

Finding an Aliased Object in ActiveX

Articles and Tips: tip

Wolfgang Schreiber
Novell, Inc.

01 Mar 2001


If you need to find out which object an Alias is referencing, you won't be able to simply read the "Aliased Object Nam" attribute, because it's the Alias and not the object that it references that actually has the attribute.

By using the context flags, the low-level APIs allow you to choose what you prefer, but the ActiveX controls don't allow for this. However, you can still get the referenced object's real name as follows:

If obj.Alias Then
v = obj.GetFieldValue("CN", "n/a", False)
List1.AddItem ("Aliased Object: " & v)
End If

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates