Solved

TDBxxx

Posted on 1998-06-13
1
133 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

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…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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