Click to See Complete Forum and Search --> : random access delete code


olanobrien
February 17th, 2000, 05:14 AM
This is a desperate cry for help, I am doing a project with a Random Access File. But Although I can delete a record from being displayed in the form, it remains in the file and also the UBound(Counter) property doesn't decrease by one. I realise without giving the actual code this description may seem a bit vague, but if anyone has/knows where I can get some sample code of how to delete a record it would be GREATLY appreciated as I'm tearing my hair out at this stage, Thanks Olan

d.paulson
February 17th, 2000, 08:33 PM
you basicaly have to open a new random access file
copy each record from original file while skipping
the deleted files.
close both files
kill the original file
rename new file to original