|
-
Oct 10th, 2005, 08:25 AM
#1
Thread Starter
Junior Member
[RESOLVED] Dynamically get propeties of an object.
I need help with some code to get the propeties of an object dynamically.
What i need to do is generate a treeview according to the propeties of an object so when i change the class, because the object is instantiated using the class the treeview should change accordingly.
basically this is what i want to do.
Dim PropList() As String = Split(Obj.PropertyList)
Dim I as integer
For I = 0 to Ubound(PropList)
AddTreeViewNode(PropList(I),Ob.Properties(PropList(I))
Next
addTreeViewNode is a method that adds nodes to a treeview. What i need is a way of using something similar to Obj.PropertyList and Ob.Propeties (these don't exist obviously)
Any ideas anybody?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|