Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

I really need help !!

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

618 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