Board index » delphi » State in AfterPost always is dsBrowse

State in AfterPost always is dsBrowse

Helpfile and manual say:
"AfterPost occurs after an application writes the current record to the
database or cache and BEFORE the dataset is returned to browse state."
I find that in AfterPost the state of the dataset always is dsBrowse. What
is wrong, Delphi or the manual?

 

Re:State in AfterPost always is dsBrowse


I think the manual.
It worked this way since D1.
If you want to do operations after posting a record (e.g. saving data to
other tables), you have to save the state in the beforepost into a variable,
and check it on the Afterpost.
Do not put the afterpost event into the Beforepost, because that's not
guarateed, that the record vill really by posted (e.g key violation occurs
during a post)

Levente Valent
L-SOFT KFT
ls...@szabinet.hu

Quote
Jos Knijnenburg wrote in message <6j9dlk$9v...@forums.borland.com>...
>Helpfile and manual say:
>"AfterPost occurs after an application writes the current record to the
>database or cache and BEFORE the dataset is returned to browse state."
>I find that in AfterPost the state of the dataset always is dsBrowse. What
>is wrong, Delphi or the manual?

Other Threads