Link to home
Start Free TrialLog in
Avatar of CLWU
CLWUFlag for Afghanistan

asked on

how do i get the data out of a multi field arraylist

first i read the data from database to the arraylist named arrspclist,
then i set the combobox's data source to arrspclist.
with displaymember to "SpecialID" and ValueMember = "SpecialName"
now, everytime when there is a change on selection of combobox item, it will display the new info (Sp1Amount, Sp1Price,SP2Amount,SP2Price) to the other textboxes according  to the selection
but i have no idea how to do this getting the info out of a specific arraylist item.
hope i am explaining clearly
thank you
Public Class PdtSpecial 'arraylist's structure
    Private mySpecialID As String
    Private mySpecialName As String
    Private mySpecial1Amount As String
    Private mySpecial1Price As String
    Private mySpecial2Amount As String
    Private mySpecial2Price As String
 
    Public Sub New(ByVal strID As String, ByVal strName As String, ByVal strSP1Amt As String, ByVal strSP1Prc As String, ByVal strSP2Amt As String, ByVal strSP2Prc As String)
        Me.mySpecialID = strID
        Me.mySpecialName = strName
        Me.mySpecial1Amount = strSP1Amt
        Me.mySpecial1Price = strSP1Prc
        Me.mySpecial2Amount = strSP2Amt
        Me.mySpecial2Price = strSP2Prc
    End Sub 'New
 
    Public ReadOnly Property SpecialID() As String
        Get
            Return mySpecialID
        End Get
    End Property
 
    Public ReadOnly Property SpecialName() As String
        Get
            Return mySpecialName
        End Get
    End Property
 
    Public ReadOnly Property Special1Amount() As String
        Get
            Return mySpecial1Amount
        End Get
    End Property
    Public ReadOnly Property Special1Price() As String
        Get
            Return mySpecial1Price
        End Get
    End Property
    Public ReadOnly Property Special2Amount() As String
        Get
            Return mySpecial2Amount
        End Get
    End Property
    Public ReadOnly Property Special2Price() As String
        Get
            Return mySpecial2Price
        End Get
    End Property
End Class '

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial