StUnT10011
06-22-2004, 02:26 PM
Okay, here it goes.
I have 3 textboxes, lastNameTxt, firstNameTxt, and depositAmountTxt. When the user clicks cmdAdd it adds all three to a listBox:
John Doe $500.00
Schmo Joe $250.00
mainBox.Items.Add(lastNameTxt.Text & vbTab & vbTab & vbTab & firstNameTxt.Text & vbTab & vbTab & vbTab & "$" & depositAmountTxt.Text & ".00")
then when a user clicks save it saves it as a string to a txt file using a streamwriter and it can be opened again using a streamreader. what i want to know is how would I be able to read only the amount at the end of the string ( eg. the 250.00)??
I have 3 textboxes, lastNameTxt, firstNameTxt, and depositAmountTxt. When the user clicks cmdAdd it adds all three to a listBox:
John Doe $500.00
Schmo Joe $250.00
mainBox.Items.Add(lastNameTxt.Text & vbTab & vbTab & vbTab & firstNameTxt.Text & vbTab & vbTab & vbTab & "$" & depositAmountTxt.Text & ".00")
then when a user clicks save it saves it as a string to a txt file using a streamwriter and it can be opened again using a streamreader. what i want to know is how would I be able to read only the amount at the end of the string ( eg. the 250.00)??