Subject | Re: [IBO] Detecting a read only database |
---|---|
Author | bitbanger99 |
Post date | 2006-08-17T21:02:58Z |
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@...> wrote:
violation in C++Builder6.
void __fastcall TForm1::DBConnectionAfterConnect(
TIB_Connection *Sender)
{
if (Sender->Characteristics->dbReadOnly){
...
}
}
Seems that copying the Characteristics structure generates an
exception. Anyone out there using Builder have this problem?
>Thanks, Helen. Unfortunatley when I do this, I get a read access
> You must be using *some* TIB_Connection descendant. Read the
> Characteristics property:
>
> e.g.
>
> if IBODatabase1.Characteristics.dbReadOnly then
>
violation in C++Builder6.
void __fastcall TForm1::DBConnectionAfterConnect(
TIB_Connection *Sender)
{
if (Sender->Characteristics->dbReadOnly){
...
}
}
Seems that copying the Characteristics structure generates an
exception. Anyone out there using Builder have this problem?