Page 1 of 1

Progressbar until SQL-Statement has finished...

Posted: 10.12.2007, 15:23
by stern
Hello everybody,

is there any way to show a Progressbar while a sql-statement is running?
I think that I have to solve this by using Threads...but as usual don't know how :wink:

If there is any solution or an example, please let me know.

Regards
Steffi

Posted: 10.12.2007, 15:52
by mdaems
Hi Steffi,

I'm afraid you only can show a 'busy' pointer or something like an every ticking clock. First prerequisite for a progress bar is knowing how long the query will take.
For setting the Hourglass cursor : try "ZConnection.SQLHourGlass := true;" I never used it, but I think it's a good thing to start with.

Mark

Posted: 10.12.2007, 15:59
by stern
Thank you Mark,

I'm going to try it...

Regards
Steffi