Solved

I really need help !!

Posted on 1998-02-11
2
141 Views
Last Modified: 2010-04-04
I am using DELPHI 2.0 with local database (PARADOX)
Let suppose my form has two buttons like "NEW" and the code is "table1.insert" and "SAVE" .."table1.post"
and I entered 50 records through "SAVE" buttons but my form is remain open okey..and accidently my PC turn off..
but the interesting thing is after turning on when I go there to check the records there is nothing..I mean I got nothing there which I entered earlier the 50 records of mine..but when I close the form or issue "table1.close" statement normally it saves permanently ..
Do you think I am doing this in a wrong way or is there another way to write data permanently ..?
OR with local database permanent data writing is not available ...I shall highly appreciate your help ...


0
Comment
Question by:zahziah
  • 2
2 Comments
 
LVL 1

Accepted Solution

by:
millerw earned 50 total points
ID: 1359053
Try this procedure:

procedure TdmdStrategyYear.WriteItNow(DataSet: TDataSet);
begin
     DbiSaveChanges(TTable(DataSet).Handle);
end;

Make the procedure run from the AFTERPOST event of the TTable object.  Additionally, you might want to do it after insert, edit, and delete also.  I've had problems especially with BatchMove and the table calling the function.  For more info, check the BDE API Help file that comes with Delphi.  

Also, see the discussion concerning this--its currently one of the last questions in the "Awaiting answer" section:

76   1/13/98 200 Write buffers to disk using dbase tables      cleaix

Hope that helps,
Scott

PS.  You might want to just delete this question and keep checking the discussion above.
0
 
LVL 1

Expert Comment

by:millerw
ID: 1359054
Additionally, try this site:

http://www.borland.com/devsupport/delphi/ti_list/TI2953.html

Its the technical documents supplied by borland.  It deals with writting the buffer to disk.

Scott
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question