Page 1 of 1

TMyScript without prgress event

Posted: Wed 17 Jan 2007 11:59
by Thomas J.
Hello support,

is it possible to get the event for the executng of the script like TMyDump?

Thanks for yor answer

Posted: Thu 18 Jan 2007 08:42
by Antaeus
Unfortunately TMyScript does not have such event like TMyDump has. But there is a possibility to do this manually. For example:

Code: Select all

    len := Length(MyScript.SQL.Text); 
    while MyScript.ExecuteNext do
      ProgressBar.Position := Trunc((MyScript.StartPos / len) * 100);

Posted: Thu 18 Jan 2007 10:40
by Thomas J.
Thanks a lot, but all the methods and properties are not documented in the help file, or? :roll:

Posted: Thu 18 Jan 2007 11:05
by Antaeus
You are right. Thank you for information. We will document them.