Results 1 to 4 of 4

Thread: Using Objects

  1. #1

    Thread Starter
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Wink 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.

  2. #2
    Seth DK
    Guest
    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...

  3. #3

    Thread Starter
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    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.

  4. #4
    Seth DK
    Guest
    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
  •  



Click Here to Expand Forum to Full Width