Results 1 to 5 of 5

Thread: Object with Subobjects?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    593

    Post

    The way to do this is using classes. Obviously you must be using a class for the WAMessage object.

    You should create some more classes, one each for the menu, toolbar and DAPI. Then, in the WAMessage class's general declarations, put something like this:
    Public DAPI As New clsDAPI
    'etc...



    ------------------
    John Percival
    Editor, VB-World.net
    john@vb-world.net


  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    593

    Post

    Yup, that's right.

    ------------------
    John Percival
    Editor, VB-World.net
    john@vb-world.net


  3. #3
    Member
    Join Date
    Jan 1999
    Location
    Gig Harbor, WA, USA
    Posts
    48

    Post

    Tried it...split the code into the 3 classes, compiled it, and now it won't even let me insert it into my project. Moved the code back to the Control, killed the classes, recompiled, and it worked again. Any ideas?

    ------------------
    (¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
    Teenage Programmer
    Visual Basic, HTML, C++, JavaScript

    http://welcome.to/X12Tech
    Email: craigkovatch@compuserve.com
    ICQ#: 9872708

  4. #4
    Member
    Join Date
    Jan 1999
    Location
    Gig Harbor, WA, USA
    Posts
    48

    Post

    Actually, the WAMessage component is an ActiveX contol...so would I just add 3 classes into that?

    ------------------
    (¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
    Teenage Programmer
    Visual Basic, HTML, C++, JavaScript

    http://welcome.to/X12Tech
    Email: craigkovatch@compuserve.com
    ICQ#: 9872708

  5. #5
    Guest

    Post

    Use the Class Builder utillity and crate a collection with it.
    It makes some pretty looking code witch is commented.

    If it still doesn't work i could email a sample project.



    ------------------

    Vincent van den Braken
    EMail: azzmodan@azzmodan.demon.nl
    ICQ: 15440110
    Homepage: http://www.azzmodan.demon.nl




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