VB6 File Flag

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mmurphmsu
    New Member
    • Nov 2006
    • 19

    #1

    VB6 File Flag

    Does anyone know how to reset the file flag in VB6 so that I can make a file that writes rows? For example:

    Apples
    Oranges
    Bananas
    Grapes

    Then after writing "Grapes", goes back to the top and writes:

    Apples 5
    Oranges 7
    Bananas 3
    Grapes 6

    Then goes back to the top and does it again.
  • albertw
    Contributor
    • Oct 2006
    • 267

    #2
    Originally posted by mmurphmsu
    Does anyone know how to reset the file flag in VB6 so that I can make a file that writes rows? For example:

    Apples
    Oranges
    Bananas
    Grapes

    Then after writing "Grapes", goes back to the top and writes:

    Apples 5
    Oranges 7
    Bananas 3
    Grapes 6

    Then goes back to the top and does it again.
    hi

    if your file has been written already you can't, exept in case your use a binary random access file. but you need to declare fields.
    otherwise you need to open the sourcefile again (for input), read it in e.g a listbox, add numbers behind the selected items and write back.

    Comment

    • mmurphmsu
      New Member
      • Nov 2006
      • 19

      #3
      ok, thanks for the info

      Comment

      Working...