Results 1 to 6 of 6

Thread: Object Programming Question (Resolved)

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Fort Worth, Texas, USA
    Posts
    264

    Object Programming Question (Resolved)

    Hello,

    I've set up an object, and am trying to nest other objects. However, it seems that it won't work. Can anyone help?

    Example Code (in a .BAS Module):

    Public Type AObj
    Param1 as Integer
    Param2 as Integer
    End Type

    Public Type BObj
    Params as AObj
    End Type

    Public BigObject as BObj

    When using this, I can enter:
    a = BigObject.Params

    The following won't work:
    a = BigObject.Params.Param1
    a = BigObject.Params.Param2

    Any Ideas on how to make this work?
    I'm using VB6-SP5

    Thanks,
    Ken
    Last edited by Ken Whiteman; Oct 24th, 2002 at 05:13 PM.

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