Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

I need help

**I am trying to add a public class to add make AddMemberObject work
Please help!

My code:
*********

If statusCode = "A" Then
memberList.Add(AddMemberObject.GetMemberName, AddMemberObject)
lstMemberNames.Items.Clear()

For i = 0 To memberList.Count - 1
tempMemberAdd = memberList.GetByIndex(i)
lstMemberNames.Items.Add(tempMemberAdd.GetMemberName)
Next
statusCode = ""
End If
If statusCode = "AddCancel" Then
lstMemberNames.Items.Clear()

For i = 0 To memberList.Count - 1
tempMemberAdd = memberList.GetByIndex(i)
lstMemberNames.Items.Add(tempMemberAdd.GetMemberName)
Next
statusCode = ""
End If
If statusCode = "EditCancel" Then
memberList.Add(AddMemberObject.GetMemberName, AddMemberObject)
lstMemberNames.Items.Clear()

For i = 0 To memberList.Count - 1
tempMemberAdd = memberList.GetByIndex(i)
lstMemberNames.Items.Add(tempMemberAdd.GetMemberName)
Next
statusCode = ""
End If
If statusCode = "E" Then
memberList.Add(AddMemberObject.GetMemberName, AddMemberObject)
lstMemberNames.Items.Clear()
For i = 0 To memberList.Count - 1
tempMemberAdd = memberList.GetByIndex(i)
lstMemberNames.Items.Add(tempMemberAdd.GetMemberName)
Next
statusCode = ""
End If
If statusCode = "R" Then
lstMemberNames.Items.Clear()
For i = 0 To memberList.Count - 1
tempMemberAdd = memberList.GetByIndex(i)
lstMemberNames.Items.Add(tempMemberAdd.GetMemberName)
Next
statusCode = ""
End If
End If

lblMemberCount.Text = memberList.Count
End Sub

Public Class Member
***Code



Thank you,
Isabel

Comments

  • FlakesFlakes Posts: 642Member
    : **I am trying to add a public class to add make AddMemberObject work
    : Please help!
    :
    : My code:
    : *********
    :
    : If statusCode = "A" Then
    : memberList.Add(AddMemberObject.GetMemberName, AddMemberObject)
    : lstMemberNames.Items.Clear()
    :
    : For i = 0 To memberList.Count - 1
    : tempMemberAdd = memberList.GetByIndex(i)
    : lstMemberNames.Items.Add(tempMemberAdd.GetMemberName)
    : Next
    : statusCode = ""
    : End If
    : If statusCode = "AddCancel" Then
    : lstMemberNames.Items.Clear()
    :
    : For i = 0 To memberList.Count - 1
    : tempMemberAdd = memberList.GetByIndex(i)
    : lstMemberNames.Items.Add(tempMemberAdd.GetMemberName)
    : Next
    : statusCode = ""
    : End If
    : If statusCode = "EditCancel" Then
    : memberList.Add(AddMemberObject.GetMemberName, AddMemberObject)
    : lstMemberNames.Items.Clear()
    :
    : For i = 0 To memberList.Count - 1
    : tempMemberAdd = memberList.GetByIndex(i)
    : lstMemberNames.Items.Add(tempMemberAdd.GetMemberName)
    : Next
    : statusCode = ""
    : End If
    : If statusCode = "E" Then
    : memberList.Add(AddMemberObject.GetMemberName, AddMemberObject)
    : lstMemberNames.Items.Clear()
    : For i = 0 To memberList.Count - 1
    : tempMemberAdd = memberList.GetByIndex(i)
    : lstMemberNames.Items.Add(tempMemberAdd.GetMemberName)
    : Next
    : statusCode = ""
    : End If
    : If statusCode = "R" Then
    : lstMemberNames.Items.Clear()
    : For i = 0 To memberList.Count - 1
    : tempMemberAdd = memberList.GetByIndex(i)
    : lstMemberNames.Items.Add(tempMemberAdd.GetMemberName)
    : Next
    : statusCode = ""
    : End If
    : End If
    :
    : lblMemberCount.Text = memberList.Count
    : End Sub
    :
    : Public Class Member
    : ***Code
    :
    :
    :
    : Thank you,
    : Isabel
    :



    So what's happening now, are you getting any errors ?

    What's memberlist ? a class ?



Sign In or Register to comment.