Confused about DataSet UpdateStatus and Sate
From: Pierre (pierre.daisomont_at_iteaconsult.be)
Date: 01/20/05
- Next message: Pierre: "Dataset.BatchUpdate(arCurrent) doesn't work ! using (arAll) WORK ! WHy !"
- Previous message: Dave McConnell: "Problem with ADOQuery - PLS HELP ASAP"
- Next in thread: Konrad: "Re: Confused about DataSet UpdateStatus and Sate"
- Reply: Konrad: "Re: Confused about DataSet UpdateStatus and Sate"
- Reply: Brian Bushay TeamB: "Re: Confused about DataSet UpdateStatus and Sate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 20 Jan 2005 14:25:52 +0100
Hi,
I'm working on an application with batchupdates.
I try to find out if I have to save or discards changes when scrolling from
a record to an other.
So I wrote an "BeforeSroll" event handler to check if I'm editing or
whatever.
I decide to use "(dataset as AdoDataset).updatestatus <> usUnmodified".
After I suspect that doesn't work (in the way I want ... not a bug !) I use
a break point and check values.
Indeed the value of "updatestatus" was "usunmodified" BUT if I check
"(dataset as AdoDataset).Sate" I receive "dsEdit". That is in fact the
reality and what I expect.
SO ... Why ?
I tought that working with the dataset level (updatestatus) was the best ...
but don't give me what I expect !
What's the problem ?
Is it because I haven't yet update (updatebatch) the records ?
Hope someone can give me a clear explanation !
Regards
Pierre
- Next message: Pierre: "Dataset.BatchUpdate(arCurrent) doesn't work ! using (arAll) WORK ! WHy !"
- Previous message: Dave McConnell: "Problem with ADOQuery - PLS HELP ASAP"
- Next in thread: Konrad: "Re: Confused about DataSet UpdateStatus and Sate"
- Reply: Konrad: "Re: Confused about DataSet UpdateStatus and Sate"
- Reply: Brian Bushay TeamB: "Re: Confused about DataSet UpdateStatus and Sate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]