Visual Basuc Help - Random Access Files

Closed
plzhelp - Jan 7, 2009 at 07:15 PM
 Jeff - Apr 2, 2010 at 10:31 AM
Hi,I am having problems with deleting a record in a random access file. I cannot leave the rcord blank because I load the file into a listbox and a blank line will show up in the list box then.

I heard about making another random access file and then copying the information there without the one which should be deleted. And then deleting the old file and renaming the new one.
I just was not sure how to go about doing this.

Thanks for your time, and any help will be appreciated!

2 replies

lgmobile.cz Posts 9 Registration date Wednesday October 1, 2008 Status Member Last seen May 12, 2009 2
Jan 8, 2009 at 01:56 AM
hi,
try this link to get all the information you need:
http://www.vb6.us/tutorials/working-random-access-files-vb
0
Thanks for ur response, but I dont think that "how to delete a record in a random access file" is there. There was how to clear a record I think but I want to be able to delete a record and then move up all the records under it by one, so if there were 30 records and i deleted one then there would be 29 with no blank records.

Thanks
0
Why not simply not add to the list when reading a blank record?
0