Re: UpdateStatus is not returning correct value
- From: "Vitali Kalinin" <vitkalinin@xxxxxxxxx>
- Date: Fri, 14 Dec 2007 15:39:53 +0200
"Del Murray" <Del.Murray@xxxxxxxxxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:4762849e@xxxxxxxxxxxxxxxxxxxxxxxxx
Really ????So you probably have a lot of code like that: if DataSet.State in (dsEdit,
I've written litterally hundreds and hundreds of thousands of lines of
Delphi and *never* called it.
dsInsert) then DataSet.Post; (which could be among the reasons why you had
to wright that much lines of code :-)). CheckBrowse mode does it for you
(and also ensures that all changes of dbawarecontrols are reflected in
dataset and post only in case if something has been changed in DataSet else
it is just cancel edit/insert mode). In general I find it very usefull.
Then DataSet.Post used to be called for you in some other place.
I did notice that it works differently than simply calling "post" after
changing data in a tdbedit, it does not change the 'edit' mode to 'browse'
... I think.
I need to investigate this further .. as I said, the program worked fine
before without ever calling that function.
.
- Follow-Ups:
- Re: UpdateStatus is not returning correct value
- From: Del Murray
- Re: UpdateStatus is not returning correct value
- References:
- UpdateStatus is not returning correct value
- From: Del Murray
- Re: UpdateStatus is not returning correct value
- From: Vitali Kalinin
- Re: UpdateStatus is not returning correct value
- From: Del Murray
- Re: UpdateStatus is not returning correct value
- From: Vitali Kalinin
- Re: UpdateStatus is not returning correct value
- From: Del Murray
- Re: UpdateStatus is not returning correct value
- From: Vitali Kalinin
- Re: UpdateStatus is not returning correct value
- From: Del Murray
- UpdateStatus is not returning correct value
- Prev by Date: Re: UpdateStatus is not returning correct value
- Next by Date: Re: UpdateStatus is not returning correct value
- Previous by thread: Re: UpdateStatus is not returning correct value
- Next by thread: Re: UpdateStatus is not returning correct value
- Index(es):
Relevant Pages
|