Recent

Author Topic: TDBEdit don't assign new value..  (Read 2433 times)

FezaCakir

  • New member
  • *
  • Posts: 8
TDBEdit don't assign new value..
« 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?

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: TDBEdit don't assign new value..
« Reply #1 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?

FezaCakir

  • New member
  • *
  • Posts: 8
Re: TDBEdit don't assign new value..
« Reply #2 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)

FTurtle

  • Sr. Member
  • ****
  • Posts: 292
Re: TDBEdit don't assign new value..
« Reply #3 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.

 

TinyPortal © 2005-2018