Solved

I really need help !!

Posted on 1998-02-11
2
137 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now