Results 1 to 2 of 2

Thread: Class module

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Location
    Mostar, Bosnia and Hercegovina
    Posts
    16

    Smile Class module

    I know I can write:

    Dim x(5) As New Class1
    x(1).SomeProperty = "SomeText"

    Is it possible make array of property? Than in code to write, for example:

    x(1).SomeProperty(1) = "SomeText1"
    x(1).SomeProperty(2) = "SomeText2"
    x(1).SomeProperty(3) = "SomeText3"
    x(1).SomeProperty(4) = "SomeText4"
    x(1).SomeProperty(5) = "SomeText5"

    I need to make class with array property. Any Idea?

  2. #2
    Junior Member
    Join Date
    Feb 2002
    Location
    UK
    Posts
    23
    yep, its as simple as -

    Public Property Get test(Index As Long) As Boolean

    and ...

    Public Property Let test(Index As Long, newvalue As Boolean)

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