Re: Delphi 4 + paradox

Posted by Jean-Claude Servaye on May 04, 2001 at 16:31:22:

In Reply to: Delphi 4 + paradox posted by Simon Stephane on May 04, 2001 at 08:28:14:

If you change a record, or if you add a record, these changes are put in the file if you move to another record.
If you close your application just after adding or editing a record, you loose your changes, because the data are NOT saved in the file

To save the data, try:
before exit.

The correct line is :

If Table1.State in [dsEdit,dsInsert] then Table1.Post;