Results 1 to 11 of 11

Thread: How add new Sub procedure to Items of List?

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2013
    Posts
    32

    Exclamation How add new Sub procedure to Items of List?

    Hi...

    How add Sub procedure to Items property of CustomClass
    example

    Code:
    Dim aa As New myList
    
    aa.Items.Add("abc")
    aa.Items(2).Xy '<<<<< Xy
    
    
    -----------------------------------
    
    Class myList
    
        Private _Items As New List(Of String)
        Property Items() As List(Of String)
            Get
                Return _Items
            End Get
            Set(ByVal value As List(Of String))
                _Items = value
            End Set
        End Property
    
    End Class
    Last edited by a1024; Jun 4th, 2014 at 03:22 AM.

Tags for this Thread

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