r/visualbasic • • Jun 11 '16

NEED HELP VISUAL BASIC 2010!!!

i have a save button that saves text from 3 different labels to a text document. Is there a way to separate the 3 different pieces of data again back onto the 3 labels with a load button?

0 Upvotes

5 comments sorted by

6

u/nerdfarm Jun 11 '16

Yes.

2

u/[deleted] Jun 11 '16

Well, you're not wrong.

1

u/[deleted] Jun 11 '16

I assume you're writing these out to the text file in a specific order and with each value on a different line. If this is the case then you just read each line in the same order and put it into the label. Do you have a code example we can look at where you've attempted it already?

1

u/[deleted] Jun 12 '16 edited Jun 13 '16

You can use .Split if they're on the same line.

1

u/promoto Jun 12 '16

you can do this, for this instead of storing different label in text document store it in access database and retrieve it from database assign it to label