Lazarus

Programming => LCL => Topic started by: FezaCakir on May 26, 2018, 04:01:11 pm

Title: TDBEdit don't assign new value..
Post 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?
Title: Re: TDBEdit don't assign new value..
Post by: valdir.marcos on May 26, 2018, 06:07:47 pm
Attach a small sample project...

What DBMS (Firebird, PostgreSQL, MaqriaDB, etc) are you using?
Have you used SQLdb.Post and ApplyUpdates and Commit?
Title: Re: TDBEdit don't assign new value..
Post by: FezaCakir on June 04, 2018, 04:54:17 pm
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)
Title: Re: TDBEdit don't assign new value..
Post by: FTurtle on June 04, 2018, 07:54:33 pm
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.