P
Peter
I saw this example and was wondering how I would driectly assign
information out of this structure:
Public Class guitar
Private m_make As String
Private m_model As String
Private m_year As Short
Public Sub New(ByVal make, ByRef model, ByVal year)
m_make = make
m_model = model
m_year = year
End Sub
Public Property make() As String
Get
Return m_make
End Get
Set(ByVal Value As String)
m_make = Value
End Set
End Property
'<<<<<<<<<<<<<<<<<<<<<<<<<<<...Inset Other properties
here>>>>>>>>>>>>>>>>>>
End Class
Private al as New Arraylist()
al.Add(New guitar("Gibson", "Les Paul", 1958))
al.Add(New guitar("Fender", "Jazz Bass", 1964))
al.Add(New guitar("Guild", "Bluesbird", 1971))
So now if I want to grab and assign one of these values driectly from
the array list to another string how would I do that?
information out of this structure:
Public Class guitar
Private m_make As String
Private m_model As String
Private m_year As Short
Public Sub New(ByVal make, ByRef model, ByVal year)
m_make = make
m_model = model
m_year = year
End Sub
Public Property make() As String
Get
Return m_make
End Get
Set(ByVal Value As String)
m_make = Value
End Set
End Property
'<<<<<<<<<<<<<<<<<<<<<<<<<<<...Inset Other properties
here>>>>>>>>>>>>>>>>>>
End Class
Private al as New Arraylist()
al.Add(New guitar("Gibson", "Les Paul", 1958))
al.Add(New guitar("Fender", "Jazz Bass", 1964))
al.Add(New guitar("Guild", "Bluesbird", 1971))
So now if I want to grab and assign one of these values driectly from
the array list to another string how would I do that?