Solved

TDBxxx

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi XE2 application frozen on Windows 10 10 336
select query - oracle 16 100
can't find the executable in Simulator 1 100
Why can't I create any project with my delphi EXE file? 6 39
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…
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.

790 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