Solved

data changes not posted

Posted on 2006-10-19
3
127 Views
Last Modified: 2010-04-05
I have a simple app which has several tdbedit fields and a button to post data.

If I edit a field and press the post button before I tab out of the field, the data is lost.

This sounds SO trivial I'm embarrassed to ask but there you go..
I'm asking.............. What can I do.
0
Comment
Question by:TonyDelphiHunt
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
TheRealLoki earned 100 total points
ID: 17770672
what database components are you using? ado, paradox (TTable, TQuery, TIBQuery, TIBDataset, TUpdateSQL, etc)
if it is sql, what does your updatesql look like?
are you usig the default settings, or have you turned on caching?
0
 

Author Comment

by:TonyDelphiHunt
ID: 17780352
Well, what can I say...... I was looking at a tiny sample of code to show the problem and I couldn't re-produce it.......................................

After much anguish, I found it was because in the original code I was triggering the Post with a tToolButton. My sample code was using a standard button.

When the tToolButton is pressed, focus is left with the tDBEdit that has focus, with a tButton, focus is passed to the button itself.
When the focus leaves the tdbedit, data is retained.


Weird behavior but logical (I guess). Anyway, please have the points as you were the only one to answer anyway.


Best Wishes..
0
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 17782526
I think you should ask to have your points refunded actually :-)
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi XE10 Round Image 2 160
Delphi selector screen 2 85
creating threads in delphi 1 136
Delphi problems to abort a printjob 9 25
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

820 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