Solved

TDBxxx

Posted on 1998-06-13
1
137 Views
Last Modified: 2010-04-04
hi
i"m using local database (paradox) and TDBedit etc ...

i would like to know while the user enter data to thos controlers ...
when does really the data stored in the disk ?
what should i do to make sure the data enter ?
how can i inforce the program to store thos data ?
if the user already enter data ... and he want to make "Cancel" -restore the previous dara (like it was b4 he type ) , how can i do it ?

10x in advance
asi
0
Comment
Question by:asi
1 Comment
 

Accepted Solution

by:
jarlev earned 50 total points
ID: 1352629
"m using local database (paradox) and TDBedit etc ...

    i would like to know while the user enter data to thos controlers ...
    when does really the data stored in the disk ?
-> When the post method of the dataset is called.
    what should i do to make sure the data enter ?
-> mydataset.post ( mydataset being the dataset attached to the controls ). Usually this is done in the onclick method of a "save" button
    how can i inforce the program to store thos data ?
-> If the user closes the window or exits in any other way, you can do :
         if mydataset.state in [dsInsert,dsEdit] then
             begin
           if application.MessageBox('You have an unsaved update. Do you want to save it? ',
             'Update confirmation',
             MB_ICONQUESTION or MB_YESNO ) = ID_YES then
                 mydataset.post
           else
                mydataset.cancel
           end

    if the user already enter data ... and he want to make "Cancel" -restore the previous dara (like it was b4 he type ) , how can i do it ?
->  See above : by calling mydataset.cancel
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 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