Page 1 of 1

IBCScript.execute

Posted: Fri 02 Oct 2009 13:20
by ibdac2pro
Hello,

In a script i load a lot of insert update ... commands
Is there is a way when i call the execute method to know which command is treated in order to show a progress bar to the user

Thanks for help

Regards

Posted: Mon 05 Oct 2009 08:02
by Plash
You can use the Statements property of TIBCScript. Use Statements.Count to set the maximum value of a progress bar.
Then you can execute statements one by one using Statements.Execute and increament the progress bar.
Or you can call TIBCScript.Execute and increament the progress bar on the AfterExecute event.