467,161 Members | 856 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,161 developers. It's quick & easy.

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.
Nov 17 '06 #1
  • viewed: 1839
Share:
2 Replies
100+
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.
Nov 17 '06 #2
ok, thanks for the info
Nov 17 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Abhas | last post: by
2 posts views Thread by Pecanfan | last post: by
3 posts views Thread by kimimaro | last post: by
AdrianH
5 posts views Thread by AdrianH | last post: by
13 posts views Thread by Rajkiran R.B. | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.