Random/Sequential files and listbox input

Hi,
I am writing a VB program in which a user writes some data in some text boxes (eg, name, address, ID, list of rented books). On a button click the data must be taken and saved to a file (cant be database, so a sequential or random file), a line per persons record. The results must be displayed in a listbox, person record per line. When you load the form, the files loads to the listbox and record index 0 to the textboxes. You can change a text box and click on modify and finally select a line and click delete button (very difficult, as in random you must delete the record, put flag and pass file to a new one)

As an extra note, there is a problem with passing some fields to a listbox. Some fields like address are too large to be shown on the listbox, as its 1 line divided for 10 different things. So, I was thinking of when you click save the program saves the address part to the file and the listbox opens the address part but taking the chars above 50. When you click on the records in the listbox it loads from the file the full address to teh textbox.

How could I do that Ideas

Thanks everyone. The program is ready, with validation rules and everything but I need to save the records to a file.



Answer this question

Random/Sequential files and listbox input

  • Random/Sequential files and listbox input