By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,988 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,988 IT Pros & Developers. It's quick & easy.

VB6 File Flag

P: 19
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
Share this Question
Share on Google+
2 Replies


100+
P: 267
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

P: 19
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.