Solved

I really need help !!

Posted on 1998-02-11
2
144 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

691 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