Solved

TDBxxx

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now