Home All Groups Group Topic Archive Search About
Author
21 Aug 2006 7:13 PM
Mark
Hello,

I have a form where I want to only enable a save button when something has
changed in the dataset.  Currently I'm checking current values against
original values everytime a value is changed to enable/disable the save
button.  Is there a way of telling if a dataset has been changed (ds
property?) other than using this method?

Any help greatly appreciated!
Thanks in advance

Author
21 Aug 2006 7:26 PM
Kerry Moorman
Mark,

If ds.HasChanges Then ...

Kerry Moorman


Show quoteHide quote
"Mark" wrote:

> Hello,
>
> I have a form where I want to only enable a save button when something has
> changed in the dataset.  Currently I'm checking current values against
> original values everytime a value is changed to enable/disable the save
> button.  Is there a way of telling if a dataset has been changed (ds
> property?) other than using this method?
>
> Any help greatly appreciated!
> Thanks in advance
>
>
Author
21 Aug 2006 7:32 PM
Mark
Thanks Kerry!

Show quoteHide quote
"Kerry Moorman" wrote:

> Mark,
>
> If ds.HasChanges Then ...
>
> Kerry Moorman
>
>
> "Mark" wrote:
>
> > Hello,
> >
> > I have a form where I want to only enable a save button when something has
> > changed in the dataset.  Currently I'm checking current values against
> > original values everytime a value is changed to enable/disable the save
> > button.  Is there a way of telling if a dataset has been changed (ds
> > property?) other than using this method?
> >
> > Any help greatly appreciated!
> > Thanks in advance
> >
> >
Author
21 Aug 2006 8:00 PM
zacks
Kerry Moorman wrote:
> Mark,
>
> If ds.HasChanges Then ...

I wonder if the DataSet class is "smart" enough to set this property
off if a changed value is changed back to the original value?

Show quoteHide quote
>
> Kerry Moorman
>
>
> "Mark" wrote:
>
> > Hello,
> >
> > I have a form where I want to only enable a save button when something has
> > changed in the dataset.  Currently I'm checking current values against
> > original values everytime a value is changed to enable/disable the save
> > button.  Is there a way of telling if a dataset has been changed (ds
> > property?) other than using this method?
> >
> > Any help greatly appreciated!
> > Thanks in advance
> >
> >
Author
21 Aug 2006 8:17 PM
Kerry Moorman
zacks,

No, I don't believe it is that smart.

Kerry Moorman


Show quoteHide quote
"za***@construction-imaging.com" wrote:

>
>
> I wonder if the DataSet class is "smart" enough to set this property
> off if a changed value is changed back to the original value?
>
Author
21 Aug 2006 9:30 PM
Cor Ligthert [MVP]
Kerry,

What do you mean with set back, if you mean set back by hand to the original
values, than it will forever be a question if that was a change or not,
however if it is using the methods Reject changes or accept changes, than it
would do that. (Even it it has been a datarow that was changed)

I hope this gives an idea,

Cor

<za***@construction-imaging.com> schreef in bericht
Show quoteHide quote
news:1156190452.936603.319310@m73g2000cwd.googlegroups.com...
>
> Kerry Moorman wrote:
>> Mark,
>>
>> If ds.HasChanges Then ...
>
> I wonder if the DataSet class is "smart" enough to set this property
> off if a changed value is changed back to the original value?
>
>>
>> Kerry Moorman
>>
>>
>> "Mark" wrote:
>>
>> > Hello,
>> >
>> > I have a form where I want to only enable a save button when something
>> > has
>> > changed in the dataset.  Currently I'm checking current values against
>> > original values everytime a value is changed to enable/disable the save
>> > button.  Is there a way of telling if a dataset has been changed (ds
>> > property?) other than using this method?
>> >
>> > Any help greatly appreciated!
>> > Thanks in advance
>> >
>> >
>