Subject RE: [IBO] Progress of database creation
Author Malcolm Smith
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]

> I'm trying to find a way of reporting the progress of the creation since
the
> process takes some time to complete. I have tried using TIB_Monitor to
> track the number of actions performed and tried relating this to the
script.
> I have come close by counting the number of ^ in the script = 487 but only
> 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 ?

If you are using TIB_Script to execute the script and that you know
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