Subject Re: [IBO] Detecting a read only database
Author Helen Borrie
At 12:05 PM 18/08/2006, you wrote:
>Yes, ConnectionStatus is csConnected. (The connection is verified
>before this form is displayed.) Funny thing is that I can see the
>contents of the Characteristics structure in the debugger, but when
>the line Sender->Charateristics.dbReadOnly is executed, it looks
>like something goes wrong copying an AnsiString. Maybe I should
>rebuild the pacakges.

Noting your typo above, I trust you have checked your code for
correct spelling....?

The value isn't a string, it's a Boolean, which you are reading from
a typed field in a Delphi packed record structure, not from a
variant, as you could do, for example, with column data from a
Boolean domain.

In Delphi, let's say I wanted to set an application property I have
defined, called IsDbReadOnly, as I typically would because I keep my
data and visual layers separate:

procedure DataModule1.IB_Connection1AfterConnect(Sender: TIB_Connection);
begin
inherited;
IsDbReadOnly := Sender.Characteristics.dbReadOnly;
end;

I don't know how much help this is for the Builder situation...

Helen