Subject | RE: [IBO] Progress of database creation |
---|---|
Author | Malcolm Smith |
Post date | 2004-11-26T12:23:10Z |
Daniel,
I've used this idea and my statement count (based on couting ^ is always one
more than the number of events generated. Would the first statement SET
TERM ^ not generate an event (hence the difference of 1) ?
---
Malcolm Smith
MJ Freelancing
http://www.mjfreelancing.com
Borland Technology Partner
Contributing Editor
C++Builder Developers Journal
FREE issue: http://bcbjournal.org/subscriptions.php
-----Original Message-----
From: Daniel Rail [mailto:daniel@...]
Sent: Thursday, 25 November 2004 22:35
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] Progress of database creation
[snip]
how many statements are in the script, then you can use the
TIB_Script.OnStatement event to increment the progress counter.
--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.801 / Virus Database: 544 - Release Date: 24/11/2004
I've used this idea and my statement count (based on couting ^ is always one
more than the number of events generated. Would the first statement SET
TERM ^ not generate an event (hence the difference of 1) ?
---
Malcolm Smith
MJ Freelancing
http://www.mjfreelancing.com
Borland Technology Partner
Contributing Editor
C++Builder Developers Journal
FREE issue: http://bcbjournal.org/subscriptions.php
-----Original Message-----
From: Daniel Rail [mailto:daniel@...]
Sent: Thursday, 25 November 2004 22:35
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] Progress of database creation
[snip]
> I'm trying to find a way of reporting the progress of the creation sincethe
> process takes some time to complete. I have tried using TIB_Monitor toscript.
> track the number of actions performed and tried relating this to the
> I have come close by counting the number of ^ in the script = 487 but onlyIf you are using TIB_Script to execute the script and that you know
> 485 events are raised. I realise if I scale this to 100% it will be close
> enough but am wondering if there is a more reliable method.
> Is there a better way ?
how many statements are in the script, then you can use the
TIB_Script.OnStatement event to increment the progress counter.
--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.801 / Virus Database: 544 - Release Date: 24/11/2004