Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Testing for NULL objects
Message
From
21/03/2007 12:21:30
 
 
To
21/03/2007 08:00:17
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01206415
Message ID:
01206629
Views:
24
>> Gary you should do
Function GetHierarchy(ByVal toObject As Object)
Dim lcHierarchy As String
Dim loObject As Object
loObject = toObject
lcHierarchy = loObject.Name

Do While Not loObject.Parent is Nothing 
    loObject = loObject.Parent
    lcHierarchy = loObject.Name & "." & lcHierarchy
Loop
Return lcHierarchy
End Function
Thanks Alexandre!

I now know that IsNothing(loObject.Parent) also works!


Gary.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform