After several rounds of non-answers here (seems the developers just assume
everybody else should know the internals of everything, which is not
realistic), a member of the Lazarus forum posted the answer to this problem.
The ApplyUpdates call can be placed in the "after" event handlers. Fairly
simple, and in retrospect, fairly obvious.

Knowing that two months ago would have saved me a lot of time. Meanwhile, I
switched to PostgreSQL, and the components for that DB don't appear to have
the same problem.

On Sun, Jun 22, 2008 at 8:48 AM, Joost van der Sluis <[EMAIL PROTECTED]> wrote:

> Op zaterdag 21-06-2008 om 14:04 uur [tijdzone -0500], schreef Howard Lee
> Harkness:
> > On Thu, Jun 19, 2008 at 8:22 AM, Joost van der Sluis <[EMAIL PROTECTED]>
> > wrote:
> >         Op zaterdag 14-06-2008 om 16:06 uur [tijdzone -0500], schreef
> >         Howard Lee
> >         Harkness:
> >
> >         > However, it doesn't seem to matter what I put in for
> >         nbDelete. I
> >         > always get the error "There are no fields found to generate
> >         the
> >         > where-clause" if I do ApplyUpdates for nbDelete. If I put
> >         nothing in
> >         > there, the field appears to be deleted, but it is still in
> >         the table,
> >         > and comes back to the grid when I press "refresh".
> >
>
> > Yes, and yes. See the code that I posted at the beginning of the
> > thread -- if you see a problem with the code , please tell me what I'm
> > doing wrong, or not doing right. There is definitely something wrong
> > with it, because it doesn't work. If I left something out, tell me and
> > I can just zip up the whole project and email it to you.
>
> Sorry, but with the code you've sent, it's truely impossible to get the
> error-message you claim that you got. There even is no 'ApplyUpdates' in
> your code. That code is completely irrelevent - it's the code of an empy
> program.
>
> Please, don't send puzzles to us, we can't help you if you do.
>
> For an example look at the fpc-code: packages/fcl-db/sqldb/examples
>
> Joost.
>
>
> _______________________________________________
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
Howard Lee Harkness
_______________________________________________
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to