|
-
Apr 20th, 2002, 10:42 AM
#1
Using Objects
I am creating a registry editing tool: I am thinking of using a Key Object to represnt each key. I know the basics of creating objects and setting their propeties however i would like to include a subKeys object too, which will enumerate the subkeys each of which will be represented by its own key object.
However i am not sure how this is possible because it would require my ;program to go through the whole registry and enumerate all the keys.
Does anyone know anything about objects within objects, and how to create them.
-
Apr 21st, 2002, 08:16 AM
#2
I can tell you how to make class modules that works as sub-objects of eachother. I don't know if this is any use?!
E.g. you can make a function like cMyClass.AnotherClass.SillyFunction
Instead of explaining in detail, just try out the Class Builder
"Add Class Module" --> Choose "Class builder"
I doubt that you can use it in this context but check it out, I don't quite understand what you are going to make...
-
Apr 21st, 2002, 08:29 AM
#3
If you look at the form object htere are many properties and methods available. Some of which however give you access to the properties and methods of another object. eg:
me.litsview1.listitems.item(1).subItems
me
listview1
listitems
subitems
are all objects. I would like to achieve something similar.
-
Apr 21st, 2002, 08:34 AM
#4
Perhaps you can achieve it using the property get/set that is automatically generated by the Class Module buliding guide thingie...
It "hands over" another object using the "public property" methods..
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
|