Re: Open / save / save as in Delphi

Posted by Lionel on May 08, 2005

In Reply to: Re: Open / save / save as in Delphi posted by Lionel Joyner on May 06, 2005:

: I am using Delphi 7 Professional and the only Database I have is Microsoft Access 2002, I think the version of Delphi I am using has a Database engine built in but I have not studied up on it and therefore don't know much about it. I would like keep it simple and in the pass I have called up Note Pad and save my Data as a text file. This works OK but I am looking for a better way and not having to work through Note Pad. The Data files consist of Text and Numbers.
: Do you have an example of a Menu with the (File, Open, Save, Save as, Print, Close)features using Delphi 7 Professional. I think sticking with Delphi 7 is the best way to go at this time since I don't have Paradox or dBase. --- This is an unfamiliar area for me and I appreciate your help. I have no problems doing the applications, but recording the work is what I am having the most problems with now.

1) Created a File Folder on a floppy and named the folder "RESULTS"

2) Then in the (MENU) I added a (Save) and then entered the following statement:


I then go to the floppy on the A: drive and click on the Folder and then click on the data.txt file and it comes up in Notepad. At this point everything is OK until I do another set of computations and click on Save and then the new Results overwrites the previous data.txt file.

This does not seem to be working out very well and maybe the best approach would be to save the data to a database and have each (record) on a separate line like you mention above. Also this would solve the Reading Back problem.

Having said all this I think the Database is the way to go. I don't know where to start on doing this so some help sure would be appreciated.

Related Articles and Replies


Delphi Forum :: Tutorials :: Source code :: Tips