473,503 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB6 File Flag

19 New Member
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
2 1967
albertw
267 Contributor
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
mmurphmsu
19 New Member
ok, thanks for the info
Nov 17 '06 #3

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

Similar topics

11
3579
by: BoonHead, The Lost Philosopher | last post by:
I think the .NET framework is great! It's nice, clean and logical; in contradiction to the old Microsoft. It only saddens me that the new Microsoft still doesn't under stand there own...
3
2692
by: Abhas | last post by:
> > Hi, this is Abhas, > > I had made a video library program in C++, but was facing a problem. > > After entering 12 movies, i cannot enter any more movies. > > Something gibberish comes instead....
2
7217
by: Pecanfan | last post by:
Hi, I'm trying to come up with a way of generating 'warning' e-mails based on specific criteria within an Access (2003) database. I've decided to do this by exporting specific information to a...
3
2286
by: kimimaro | last post by:
hi below is my save function that is used to placed data from the C program to a text file for future usage. void save() { FILE *save; int i = 0; save=fopen("employeerecord.txt", "a+");
17
1964
by: News | last post by:
Hi everyone, My goal is to pull command switches/options from a file and then assign the values to select variables which would eventually be included in a class object. The data file looks...
4
1578
by: amit | last post by:
Hi guys!I am trying to write a program which will segregate some selected keywords from a given file.The source code is given alongwith #include<stdio.h> #include<string.h> char...
1
8336
by: michael8 | last post by:
The problem was to write a program that reads a .cpp file containing a C++ program and produces a file with all comments stripped from the program. I finally got the answer. Here it is if...
5
64579
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C++ programming. FYI Although I have called...
2
2460
by: gustavoprogrammer | last post by:
Hi you guys! How are? I'm new at the forum and know you could help me!! I Have a C program that works with file...it's so simple, but i need help with deletion of some data in a file(.dat). This...
13
1798
by: Rajkiran R.B. | last post by:
I have written a program in C#... Now the requirement is that I want an assembly code to be the output rather than the regular executable output.. Can anyone say how to do it..
0
7072
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.