Results 1 to 15 of 15

Thread: Nested Definition of UDT

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2020
    Posts
    1,852

    Nested Definition of UDT

    I'm changing classes in my project to UDTs (Type-Defs) and I'm running into a problem that I haven't noticed before:

    In the class, we can design it like this:
    Code:
    Class cNode
        Parent As cNode
        FirstSibling As cNode
        LastSibling As cNode
    End Class
    However, we don't seem to be able to do such nesting in UDTs (Type-Defs), for example:
    Code:
    Type tNode
        Parent As tNode
        FirstSibling As tNode
        LastSibling As tNode
    End Type
    The above definition will show an error. I would like to know, what is a good solution for such a situation? Thanks.
    Last edited by SearchingDataOnly; Feb 27th, 2022 at 10:38 AM.

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