TMyScript without prgress event

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Thomas J.
Posts: 95
Joined: Mon 21 Nov 2005 12:16
Location: Germany

TMyScript without prgress event

Post by Thomas J. » Wed 17 Jan 2007 11:59

Hello support,

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

Thanks for yor answer

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 18 Jan 2007 08:42

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);

Thomas J.
Posts: 95
Joined: Mon 21 Nov 2005 12:16
Location: Germany

Post by Thomas J. » Thu 18 Jan 2007 10:40

Thanks a lot, but all the methods and properties are not documented in the help file, or? :roll:

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 18 Jan 2007 11:05

You are right. Thank you for information. We will document them.

Post Reply