Prof. Paulo Amaral wrote:
By the way, I write the data using the following code in the event "after post":
begin
 SQLQuery1.ApplyUpdates;
SQLTransaction1.Commit; //In this moment, after commit, the query is closed !!!? SQLQuery1.active:=true; //So, I have open it !!!? This does to return for the first record !!! How to keep the current register?
end;

Is correct the code? The problem is that the query is closed. So I have that to open again and the pointer goes for the first record. I used the bookmark, but, not work. How to keep the pointer on the current register? Do you know?

Sorry, I don't know. I only have used the db components for fetching data from 
the database so far, not for writing data to it. I'm not familiar with ins and 
outs of the ApplyUpdates system.

Maybe it uses the UpdateIndexDefs method. Which database component did you use 
btw?

Bram

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to