I am making a code that is just for a small school project I have. To explain it fast - a user enter some info into textboxes - it gets saved in a file on the computer.
I am using "Records" i believe is the correct word in English and FileOpen.
Now to the question (My program is working fine, just something I want to add)
I have a textbox that shows what Record you are on, or if Record is the wrong word, it shows what info that you have written in, you are on. So you can see the stuff that you have written before in the same textboxes where you write new info that is getting saved to the file.
I am adding to buttons that skips to the last person added and the first person added - and I have NO idea how to do this, I have tried for 1 hour and googled around the problem, but didn't find anything that looked like mine.
Here is one example of my code: (This only skips one and one, and not to the end or the start)
If position <= number Then If position < number Then position = position + 1 End If FileGet(Filenumber, Mystudent, position) 'Transfer the information of the student 'tp the textboxes on screen. txtNavn.Text = Mystudent.name txtKlasse.Text = Mystudent.Class txtEpost.Text = Mystudent.Email txtFĝdsel.Text = Mystudent.Birthday End If txtshowPostnumber.Text = Position
The last txtshowPostnumber.Text is where I show what "number" you are on.
If you don't understand my problem, just tell me and i'll try to explain further.
Thanks for any help given!