?
Solved

I really need help !!

Posted on 1998-02-11
2
Medium Priority
?
145 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 100 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

764 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