Lazarus
Programming => LCL => Topic started by: FezaCakir on May 26, 2018, 04:01:11 pm
-
Hello there,
I change DBEdit value but don't assing new value to own field while not exit!
Any idea?
-
Attach a small sample project...
What DBMS (Firebird, PostgreSQL, MaqriaDB, etc) are you using?
Have you used SQLdb.Post and ApplyUpdates and Commit?
-
I'm using PostgreSQL. If enter a new value for the "dbedit" (cursor is blink in the dbedit), click the button (button's click procedure includes ".Post" and ".ApplyUpdates") and before posting I check the field, i see field has not new value.
But
if I exit dbedit it works.
I don't understand why..
(sorry bad english)
-
It is well known feature. TDBEdit changes field only after focus leaved it.
Be more precise. I think you click not TButton but TSpeedButton.
The difference is TSpeedButton not accepts focus thus TDBEdit not lose it.