W
wg
I am attempting to create an array of value types but seem to be haveing a
problem referencing it.
I have created a class
Public Class Tags
Private _Name As String
Private _Address As String
Public Sub New(ByVal Name As String, ByVal Address As String)
_Name = Name
_Address = Address
End Sub
Public Property Name() As String
Get
Return _Name
End Get
Set(ByVal Value As String)
_Name = Value
End Set
End Property
Public Property Address() As String
Get
Return _Address
End Get
Set(ByVal Value As String)
_Address = Value
End Set
End Property
End Class
The question is how do I create and initialize an array to reference these
objects. For instance I will populate the array myarray(x).Name = xxx, etc.
Then update based on user inputs later.
Thanks
wg
problem referencing it.
I have created a class
Public Class Tags
Private _Name As String
Private _Address As String
Public Sub New(ByVal Name As String, ByVal Address As String)
_Name = Name
_Address = Address
End Sub
Public Property Name() As String
Get
Return _Name
End Get
Set(ByVal Value As String)
_Name = Value
End Set
End Property
Public Property Address() As String
Get
Return _Address
End Get
Set(ByVal Value As String)
_Address = Value
End Set
End Property
End Class
The question is how do I create and initialize an array to reference these
objects. For instance I will populate the array myarray(x).Name = xxx, etc.
Then update based on user inputs later.
Thanks
wg