| View previous topic :: View next topic |
| Author |
Message |
ashlar64 Guest
|
Posted: Tue May 23, 2006 1:14 pm Post subject: TDBLookUpListBox changes records when it shouldn't |
|
|
Hello,
I have a TDBLookupListBox and a few DBEdit components that are all connected to the same table. If you make a change on one of the DBEdits and then move to a different record using the TDBLookupListBox it changes the record. Is there a way to prevent this? (I basically want to force the user to push a button for the changes to take place and not just by moving to another record)
Thanks
---Dave |
|
| Back to top |
|
 |
Minas Guest
|
Posted: Tue May 23, 2006 3:14 pm Post subject: Re: TDBLookUpListBox changes records when it shouldn't |
|
|
"ashlar64" wrote
| Quote: |
If you make a change on one of the DBEdits and then move to a different
record using the TDBLookupListBox it changes the record.
|
This is the way TDBEdit works. Permits you directly edit your table
| Quote: | Is there a way to prevent this?
|
use TEdits . But you have to provide manually the values
Edit1->Text = Table1->FieldByName("FLD_name")->AsString;
and to manually post the changes in a Button Click
Table1->Edit();
Table1->FieldByName("FLD_name")->AsVariant = Edit1->Text;
Table1->Post();
regards
_minas
------
"Only virtue's conquests have certainty" Sofokleous Erephyle |
|
| Back to top |
|
 |
|