Solved

TDBxxx

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

737 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