Re: UpdateStatus is not returning correct value



Vitali,

the locktype is set in the object inspector and not modified. It is indeed
"ltBatchOptimistic".

The inspections is done upon entry into the FormCloseQuery event which is
fired when I do exactly this ...

1. change a value in a dbedit field
2. click on the "x" in the form navigator (close window).
3. FormCloseQuery fires. My example code it cut and pasted in my previous
email from the actual program and is the entire amount of code in the event.
The test for updatestatus fails of course in the FormCloseQuery event and
the record is not modified after the form closes. This was working fine. I
could understand the status not showing as expected if the record had been
committed before the FormCloseQuery event is called but this is not
happening , otherwise the data would indeed be modified... which it is not.
If I call the record back up for edit (from a dbgrid), the data is still in
its original form ... unmodified.

I dont know what else to do other than set my own "modified data" switch
somehow .. which really sucks .. big time sucks.


Del



.