Array solution

uncle55

Member
Joined
Jun 27, 2004
Messages
5
Location
Wisconsin
Programming Experience
Beginner
I have a form that has 2 text boxes(txtDescription)(txtCurrentBalance) and a listbox(lstDisplay) and 4 buttons(btnaddcard,btndisplay,btnclear and btnexit).I have declared variables and an array.Using the codes below I can get the Description and the CurrentBalance to appear in the list box. However I would like the Description to appear in the listbox but the CurrentBalance to reappear in i'ts own textbox Here is the code I have so far.

btnAddCard code:
Dim card As New clsCreditCard()
With card
.description = txtDescription.text
.CurrentBalance = Cdec(txtCurrentbalance.text)
End with
btnClear_Click (sender, e)

btnDisplay code;
lstdisplay.items.clear()
Dim Ind as integer = 0
for Ind = 0 to index - 1
With Creditcard(Ind)
lstDisplay.items .add(.Description & " " & .CurrentBalance.ToString)
End With
Next

This is done in vb.net
 
Back
Top