CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2000
    Posts
    2

    random access delete code

    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




  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: random access delete code

    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




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured