ZTable.Edit puts me in dsInsert state

Forum related to version 6.1.5 of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
ZepeDebo
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 05.09.2007, 00:33

ZTable.Edit puts me in dsInsert state

Post by ZepeDebo »

I am using Zeos 6.1.5 with Delphi 6. I have a run of code where I insert a record, add some values, post then edit again. After the edit, the table's state is dsInsert. I would expect it to be dsEdit. When I post next, rather than changing the current current record, it inserts a new one, consistent with the dsInsert state.

Any ideas what might be happening?
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Can you post the code you use? Easier for us to guess what's wrong.
ZepeDebo
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 05.09.2007, 00:33

Post by ZepeDebo »

I should have posted earlier. I found the problem. It had to do with a setting a previous programmer had set. Things are working great now.

Thanks
Post Reply