Página 1 de 1

Update() question

Publicado: Mié Sep 09, 2009 10:17 pm
por g.s.rogers
On a dbfDataSet:Update(), is there a way to tell whether the preceeding
process was a dbfDataSet:Edit() or a dbfDataSet:AddNew()? I'd like to have
one "Save" button for both adding new records and editing existing records,
but I need to do different things when the dataset is updated.
TIA,
Gary

Update() question

Publicado: Jue Sep 10, 2009 9:25 am
por Ingo JH
Gary,
before updating check dbfDataSet:lOnAppend(). So I do it.
Regards
Ingo
"Gary S. Rogers" <g.s.rogers@att.net> schrieb im Newsbeitrag
news:4aa80d77$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> On a dbfDataSet:Update(), is there a way to tell whether the preceeding
> process was a dbfDataSet:Edit() or a dbfDataSet:AddNew()? I'd like to have
> one "Save" button for both adding new records and editing existing
> records, but I need to do different things when the dataset is updated.
> TIA,
>
> Gary

Update() question

Publicado: Jue Sep 10, 2009 9:25 am
por Ingo JH
Gary,
before updating check dbfDataSet:lOnAppend(). So I do it.
Regards
Ingo
"Gary S. Rogers" <g.s.rogers@att.net> schrieb im Newsbeitrag
news:4aa80d77$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> On a dbfDataSet:Update(), is there a way to tell whether the preceeding
> process was a dbfDataSet:Edit() or a dbfDataSet:AddNew()? I'd like to have
> one "Save" button for both adding new records and editing existing
> records, but I need to do different things when the dataset is updated.
> TIA,
>
> Gary