IBCScript.execute

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ibdac2pro
Posts: 17
Joined: Mon 15 Oct 2007 14:26
Location: UK

IBCScript.execute

Post by ibdac2pro » Fri 02 Oct 2009 13:20

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

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 05 Oct 2009 08:02

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.

Post Reply