Posting in DB problem
"ssspecter" <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
Now I am having a new problem.
I am using a TTreeView object to access a database (with a TADOTable).
I an trying to make that when a node name is changed, the database is
updated. For this I put in the onChange of the TreeView:
with DataModule1.TADOTable1 do
begin
Edit;
FieldByName('name').asString:=Node.Text;
Post;
end;
But when I test it, the program dont update THE LAST CHANGE in the
DB. For example, if I change the same node 4 times with the values:
'aaa'
'bbb'
'ccc'
'ddd'
Then I close the program and see the DB then the value is 'ccc'.
I still didnt tested it, but I think it don't happen when I use
TTable.
What I am doing wrong?
Any help thanks!
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada.
We have your brand: HP, Epson, Lexmark, Canon & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/kP..SB/49VGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->
CodeCoffer the new code protection tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
---------------------------------------------------------------
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/