Question Saving Textboxes to memory

Tiaan

Member
Joined
Mar 25, 2015
Messages
15
Programming Experience
1-3
I have a set of Labels that indicate a instrument number. These labels can be changed at the top in sets of 10. 10-20,20-30 etc
Next to the labels are textboxes, i get readings from serialport, when you click on a textbox the reading gets stored in that textbox.

When the user is finished with the first 1-10 instruments, he moves on to set 10-20 and the labels are updated from 1-10 to 10-20
I need to save all the values of those textboxes in the 1-10 set into memory, so that when the user sets the labels
from 10-20 back to 1-10 Those readings are displayed again.

When the user is finished he presses save, and all the sets of data are saved into a text file.

I am not sure as to where to start, should i read everything into arrays?

program scrn.jpg
 
I am not sure as to where to start, should i read everything into arrays?

Why arrays? All you need is one array. Just put all the numbers into a single array and then retrieve 10 elements at a time. Use an array if the number of values is fixed but use a collection, e.g. List(Of Integer), if the number can change.
 
Back
Top