Subject Re: [IBO] Database FileSize ?
Author Lester Caine
Geoff Worboys wrote:

>>I want to show the actual database filesize in a statusbar,
>
> Curious, cannot imagine why a normal user should care about
> the database file size. Whatever...

In the good old days of BDE we used to have program monitoring the file
size, and ringing alarm bells when the size started increasing too quickly.
Haven't needed it with IBO though :)

> IB_Connection.Characteristics
>
> dbAllocation
> dbPage_Size
>
> attributes are the ones you want, multiply these to get the
> total bytes (but be careful of overflowing a cardinal, you
> could need a 64bit value if your database may be large).

--
Lester Caine - G8HFL
-----------------------------
L.S.Caine Electronic Services - http://home.lsces.co.uk
Model Engineers Digital Workshop -
http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php