Board index » delphi » Help: records deleted form paradox tables
pm...@optec-srl.com (PiEmme)
![]() Delphi Developer |
Mon, 02 May 2005 17:43:29 GMT
|
pm...@optec-srl.com (PiEmme)
![]() Delphi Developer |
Mon, 02 May 2005 17:43:29 GMT
Help: records deleted form paradox tables
In a Delphi 5 database application it seems to me that tables lose
data record, occasionally. I have a TDatabase component, in order to change the alias name at runtime. I add records to tables, post them explicitly, and monitor the table via database |explore. Ok. I close both the application, and the compiler. But in some cases, I do not understand when and why, but not always, all or some records get deleted, and tables become empty. Why? could it be an effect of (misuse of) TDatabase? I had InsertRecord + Cancel (in order to prepare a new record for the user, and give him the possibility of canceling the operation); but now I have removed this. Thank you. PM |
John Kebe
![]() Delphi Developer |
Tue, 03 May 2005 00:31:07 GMT
Re:Help: records deleted form paradox tablesQuotepm...@optec-srl.com (PiEmme) wrote in message <news:4d059c13.0211140143.4581d531@posting.google.com>... When set to true, the data is written to the harddrive. Do you have in the onClose of your main form: If dmData.MyTable.State in [dsInsert, dsEdit] then dmData.MyTable.Post; HTH, John |
PiEm
![]() Delphi Developer |
Fri, 06 May 2005 16:08:01 GMT
Re:Help: records deleted form paradox tablesI understand that admdta.MyDatbase.Open and .StartTransaction are required, otherwise .Commit fails. But also .Open fails! What does localShare refer to? I do not find documentation. This is not a client- server application. I use TDatabase only to change the alias at runtime. Is this use correct? Thanks. PM Quotepm...@optec-srl.com (PiEmme) wrote in message <news:4d059c13.0211140143.4581d531@posting.google.com>... |
irongu
![]() Delphi Developer |
Sat, 07 May 2005 09:10:50 GMT
Re:Help: records deleted form paradox tablesQuote"PiEmme" <pm...@optec-srl.com> wrote in message Quote> I understand that admdta.MyDatbase.Open and .StartTransaction are Do a search on Google or any big Delphi site and you should find articles on Hope this helps, Dave Murray |
John Kebe
![]() Delphi Developer |
Sat, 07 May 2005 09:54:00 GMT
Re:Help: records deleted form paradox tablesQuotepm...@optec-srl.com (PiEmme) wrote in message <news:4d059c13.0211180008.2eb8283e@posting.google.com>... A)Setting Local Share := True: This forces the Data to be written to the database (physically), no B)The use of TDatabase: Name "VHSData2" Alias Name (leave blank, the whole point of this Parameter overrides: Options check or unchecked as you see fit. Click okay. You will have to create a directory on your drive to In the Object Inspector changing "Connected" to True should cause no Your TTable components should have the name ("VHSData2") in their Commit/Rollback/StartTransaction is used when you also have HTH, John |
1. Deleting records in a Paradox table and packing
2. How can I Recover Deleted Records from Paradox Tables
3. Recover Deleted records in Paradox table
4. how can i recorver my deleted record in my paradox table
5. fastest way to delete a lot of record in a Paradox table
6. Packing a Paradox table - to remove deleted records
7. Delete Paradox Record => At beginning of table
8. Deleting records from Paradox table
9. Last record deleted in Paradox results in weird database [+ ATTACHED TABLE]