Computing.Net > Forums > Programming > Delphi 5 -Advice desperately needed

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Delphi 5 -Advice desperately needed

Reply to Message Icon

Name: Daniel A-S (by Daniel Ashley-Smith)
Date: May 11, 2006 at 12:30:22 Pacific
OS: Windows XP
CPU/Ram: 2.66 GHz P4 / 1024 DDR Ra
Product: EJ Computers
Comment:

http://homepage.ntlworld.com/bas/Dephi%205.zip

All the project files are in the zip.

Basically what is happening is when I book one record, it writes to the file no problems, and it reads it with no problems.

But when I create a whole new record, with completely different information, for some reason all it does is duplicate the first record.

I've tried exiting and re-opening the program to clear the memory, going through the code but I really can't see what is wrong.

Any advice would be greatly appreciated, since as this is my ‘As’ level project and has to be in soon. (!!)

Thanks.

P.S The password is 'a', to make life easier. And to reset the file click on 'View Bookings' in the main form and there is a button to clear it.

Daniel A-S
Kent, U.K



Sponsored Link
Ads by Google

Response Number 1
Name: jhunt303
Date: May 12, 2006 at 01:38:15 Pacific
Reply:

Your should use

Append(bookingsfile) and not

ReWrite(bookingsfile).

TO add another record


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Delphi 5 -Advice desperately needed

Delphi 5 Question www.computing.net/answers/programming/delphi-5-question/15230.html

delphi 5 www.computing.net/answers/programming/delphi-5/7791.html

.Useserial port (RS232) with Delphi 5.0 www.computing.net/answers/programming/useserial-port-rs232-with-delphi-50/803.html